Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1092357
    Ony
    Participant

    Hi there,

    I was wondering if there were a way to add some sort of code to the Portfolio page below the portfolio items. I’m looking to insert external code which will result in an events calendar.

    I checked a few other threads already but can’t seem to get it working properly.

    Thank you so much,
    Ony

    #1092358
    Ony
    Participant
    This reply has been marked as private.
    #1092511
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Then copy the file template-layout-portfolio.php which is under “/wp-content/themes/x/framework/views/ethos/” into your child theme’s respective location “/wp-content/themes/x-child/framework/views/ethos/”.

    Then you can place your code as follows. Refer the following comment section below (// place your code here)

    
    <?php
    
    // =============================================================================
    // VIEWS/ETHOS/TEMPLATE-LAYOUT-PORTFOLIO.PHP
    // -----------------------------------------------------------------------------
    // Portfolio page output for Ethos.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-container max width main">
        <div class="offset cf">
          <div class="<?php x_main_content_class(); ?>" role="main">
    
            <?php x_portfolio_filters(); ?>
            <?php x_get_view( 'global', '_portfolio' ); ?>
            <?php // place your code here ?>
    
          </div>
    
          <?php get_sidebar(); ?>
    
        </div>
      </div>
    
    <?php get_footer(); ?>
    

    Hope that helps.

    #1092903
    Ony
    Participant

    Hi Darshana, thanks for the quick reply :).

    Do I simply input my code after the ‘//’ or do I replace the ‘//’ as well?

    #1093026
    Christopher
    Moderator

    Hi there,

    Please replace // place your code here with your code.

    Thanks.

    #1094187
    Ony
    Participant
    This reply has been marked as private.
    #1094509
    John Ezra
    Member

    Hi Ony,

    Thanks for updating the thread! I’m a bit confused with your reply. You said it didn’t change anything at the start, then you said it properly displays. My understanding is that you found a way to get this to work? Is that correct and are you still needing assistance with this? Thanks.

    Regarding the integration with AcuityScheduling, I will send it in as a feature request to our main dev team. I can’t promise implementation or a timeline at this point, however, we do listen to our users and we’re always trying to improve. When we see something beneficial we do our best to make it happen. We’re actually working on a number of things so if this does get added to the pipeline, we’ll be sure to announce it when it’s ready. Thanks for understanding! Have a great day!

    #1094702
    Ony
    Participant
    This reply has been marked as private.
    #1094703
    Ony
    Participant

    Also, on the note of the AcuityScheduling, of course! Was just a suggestion, I understand you are developing tons of new features, as well as maintaining, updating, and fixing old ones. For now, I figure I can get a way to code it in.

    Another potential feature suggestion, allow Cornerstone to edit above or below the main items in the Portfolio and Blog pages. That, I feel, would allow even greater customization for the regular audience who are looking for options without coding.

    Thanks so much for the great work here at Theme.co!

    You guys are definitely the best theme out there.

    #1094903
    Christopher
    Moderator
    This reply has been marked as private.
    #1094928
    Ony
    Participant
    This reply has been marked as private.
    #1094931
    Ony
    Participant
    This reply has been marked as private.
    #1094984
    Christopher
    Moderator

    Hi there,

    I made previous replay private.

    I tried provided code in my end and it worked as expected, please provide us with FTP credentials so we can take a closer look.

    Thanks.

    #1094987
    Ony
    Participant
    This reply has been marked as private.
    #1095078
    Christopher
    Moderator

    Hi there,

    I just renamed the file from TEMPLATE-LAYOUT-PORTFOLIO to template-layout-portfolio and it fixed the issue.

    Thanks

  • <script> jQuery(function($){ $("#no-reply-1092357 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>