Tagged: x
-
AuthorPosts
-
April 26, 2016 at 5:15 pm #901095
BenMuzzaParticipantHi there,
I’d like to be able to add a slider of some sort directly under the navbar / header of the blog page as I have that as my home. We want to have a slider then directly under it have our latest posts like we do already: http://benmurray.co
So directly under the blue header have a slider of some sort so we can advertise our pages and what our site has to offer (such as forum etc) the slider only has to be about 400-500px in height but full width.
Can you please help me with this?
April 27, 2016 at 7:55 am #902052
ZeshanMemberHi Ben,
Thanks for writing in!
You can add a slider in your blog page with custom development. While that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.
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.
After that, add following code in your child theme’s functions.php file:
// Adding a Slider in Blog Page // ============================================================================= add_action('x_before_view_ethos__landmark-header', 'welcome_message'); function welcome_message() { if ( is_home() ) { echo do_shortcode('[rev_slider alias="slider_alias"]'); } }Replace slider_alias with your Revolution Slider alias.
Hope this helps. 🙂
Thank you!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-901095 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
