Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1278836
    benserbutt
    Participant

    Hi and thanks for making such a great theme.

    I’ve been around the KB and Forum, and hoping I don’t need to install a child theme for a simple change of link.

    Our ‘Our work’ page (http://jump-projects.com/our-work/) is the parent page for our Portfolio pages, such as: http://jump-projects.com/case-study/join-in/

    As the parent page is no longer simply a list of portfolio pages, is there a simple way to change the link at the top left of each Portfolio page? It’s the 9 rectangles icon (screenshot attached) that I wish to link pack the parent ‘Our work’ page, from each of the Portfolio pages.

    Any help gratefully recieved.

    #1278838
    benserbutt
    Participant

    Oh and running WordPress 4.6.1, Cornerstone Version 1.3.3.

    #1279273
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    Please add this code to your child theme’s functions.php with your preferred URL

      function x_ethos_entry_top_navigation() {
    
        if ( x_is_portfolio_item() ) {
          $link = 'http://example.com/your/url/here';
        } elseif ( x_is_product() ) {
          $link = x_get_shop_link();
        }
    
        $title = esc_attr( __( 'See All Posts', '__x__' ) );
    
        ?>
    
          <div class="entry-top-navigation">
            <a href="<?php echo $link; ?>" class="entry-parent" title="<?php $title; ?>"><i class="x-icon-th" data-x-icon=""></i></a>
            <?php x_entry_navigation(); ?>
          </div>
    
        <?php
    
      }

    Change this http://example.com/your/url/here

    Cheers!

    #1281535
    benserbutt
    Participant

    Thanks guys, that’s great! Worked a charm.

    Cheers.

    #1281630
    Rahul
    Moderator

    Glad we were able to help you out!

    Feel free to ask us again, we’d be happy to assist you with anything.

    Thanks.

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