Tagged: x
-
AuthorPosts
-
March 17, 2017 at 9:32 am #1411036
Alessandro RParticipantI got a website with two different location sections like NY and Roselyn Island without subdomains. I don’t wanna use subdomains. So I was wondering if I could use different Top Bar for different pages of my site. Is it possible? Please provide me a best easier solution for that. Please see the top bar in the link http://prntscr.com/el4c6i
And let me know if you have questions.
Best Regards
AsadMarch 17, 2017 at 1:28 pm #1411313
JadeModeratorHi Asad,
We could style the topbar in different pages different but their contents will be the same. Having a different topbar content for pages would require further customization which falls outside the scope of our support.
Thank you for your understanding.
March 17, 2017 at 4:13 pm #1411473
Alessandro RParticipantHi Jade, thank you for the reply. I need different topbar content for different pages. so how can I get the further customization? I need a solution. Is that a paid service? Or is there any other solution?
Please let me know.
March 18, 2017 at 2:38 am #1411915
Rue NelModeratorHello There,
Thanks for updating in! Because what you are trying to accomplish requires a template customization, we would like to suggest that you use 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.
After the child theme is set up, please add the following code in your child theme’s functions.php file
// Custom topbar content // ============================================================================= function add_topbar_links($content){ if ( is_page('about') ) { $content = 'Content for about page'; } else if ( is_page('another') ) { $content = 'Content for another page'; } return $content; } add_filter('x_option_x_topbar_content', 'add_topbar_links'); // =============================================================================Just make sure that you will provide the correct page slug in the condition on the above code.
We would loved to know if this has work for you. Thank you.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1411036 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
