Tagged: x
-
AuthorPosts
-
December 2, 2016 at 9:13 am #1278836
benserbuttParticipantHi 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.
December 2, 2016 at 9:14 am #1278838
benserbuttParticipantOh and running WordPress 4.6.1, Cornerstone Version 1.3.3.
December 2, 2016 at 4:21 pm #1279273
RadModeratorHi 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!
December 5, 2016 at 7:29 am #1281535
benserbuttParticipantThanks guys, that’s great! Worked a charm.
Cheers.
December 5, 2016 at 9:05 am #1281630
RahulModeratorGlad we were able to help you out!
Feel free to ask us again, we’d be happy to assist you with anything.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1278836 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
