Tagged: x
-
AuthorPosts
-
May 16, 2016 at 6:26 pm #994527
Amanda PParticipantHello,
I have a child theme set up and I have done a few custom codes in the functions.php and header views. Now I am wanting to add in a revolution slider below the header, but above the post feed on the blog page only.
I want to put
<?php putRevSlider( 'blogslider' ); ?>but I have been unsuccessful in finding which exact file I should add the code to. If you have any suggestions or solutions, that would be great.Thank you
May 16, 2016 at 11:26 pm #994917
Nabeel AModeratorHi Amanda,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
May 17, 2016 at 3:56 pm #996111
Amanda PParticipantThis reply has been marked as private.May 17, 2016 at 10:03 pm #996644
DarshanaModeratorHi there,
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 add the following code into your child theme’s functions.php file and then replace agency-home with your slider alias which you can locate under slider settings.
function my_custom_slider() { if ( is_home() ) { ?> <!-- Begin My Custom Slider --> <div class="x-container max width"> <?php echo do_shortcode('[rev_slider alias="agency-home"]'); ?> </div> <!-- End My Custom Slider --> <?php } } add_action( 'x_after_site_begin', 'my_custom_slider' );Hope that helps.
May 18, 2016 at 1:34 am #996835
Amanda PParticipantHello!
Thank you, that did, indeed insert the slider into the blog page, but it put it above the header instead of only above the blog feed.
Is there a way to insert the slider below the header, but before the blog post feed? This is what I’m looking for…. but now that I have this piece of code, I might even figure it out on my own 😀
May 18, 2016 at 1:54 am #996853
ChristopherModeratorHi there,
Please update your code to :
function my_custom_slider() { if ( is_home() ) { ?> <!-- Begin My Custom Slider --> <div class="x-container max width"> <?php echo do_shortcode('[rev_slider alias="agency-home"]'); ?> </div> <!-- End My Custom Slider --> <?php } } add_action( 'x_before_view_integrity__landmark-header', 'my_custom_slider' );Hope it helps.
May 18, 2016 at 11:33 am #997654
Amanda PParticipantAwesome, thanks! Is it possible to make the sidebar come up beside the slider? Or am I asking too much 🙂
May 18, 2016 at 11:39 am #997669
Amanda PParticipantI’m trying to replicate something similar to this: http://velikorodnov.com/wordpress/revija/home2/
May 18, 2016 at 1:40 pm #997896
DarshanaModeratorHi there,
Please check their slider examples to see if there is any similar effect that you like (https://revolution.themepunch.com/free-slider-exchange/) and then you can import it to your site.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-994527 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
