Tagged: x
-
AuthorPosts
-
February 7, 2017 at 9:20 am #1361249
Hi there!
I want to place a revolution slider below the masthead of all my post pages, (not the blog page). I currently have the Renew stack. I saw that there is other posts on this topic but nothing that can help me. I also would not mind if the slider could go into a widget (but then i still need a widget area below the masthead and above the title of the post). Another thing is that i would love to have the slider full width but is not a priority. Thanks again for all your help!
Derek
February 7, 2017 at 10:26 am #1361372Hi Derek,
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 this code in the child theme’s functions.php:
// Add a custom blog header image // ============================================================================= add_action('x_before_view_integrity__landmark-header', 'custom_blog_header01'); function custom_blog_header01(){ if (is_single()) { echo do_shortcode('[rev_slider alias="about"]'); } }
Please make sure to update the rev slider shortcode in the code provided.
Hope this helps.
February 8, 2017 at 2:09 am #1362470Hi
Thank you for the quick reply. Is this for posts or is this for the main blog page? I want to use the revolution slider below the menu bar of the posts (not the main blog page). Is there a way I can do that? Thank you!
February 8, 2017 at 4:40 am #1362575That is for single posts. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.
February 8, 2017 at 9:52 am #1362961Hi,
I have tried this code and there is no change to my site. Do you perhaps know what is wrong. I still go to the posts and there is not revolution slider.
Thank you so much!
February 8, 2017 at 12:09 pm #1363148Hi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
February 9, 2017 at 8:04 am #1364290This reply has been marked as private.February 9, 2017 at 4:39 pm #1364944This reply has been marked as private.February 9, 2017 at 6:50 pm #1365159Hi there,
Please try this code 🙂
add_action('x_before_view_integrity__landmark-header', 'custom_blog_header01'); function custom_blog_header01(){ if (is_singular('post')) { echo do_shortcode('[rev_slider alias="about"]'); } }
Cheers!
February 15, 2017 at 7:56 am #1371934Hi,
I added the above code and it still did not make a difference to my posts, sooo, as inexperienced as I were I changed: ‘x_before_view_integrity__landmark-header’ to the following ‘x_before_view_renew__landmark-header’because I thought, because I am using the renew stack this would make the diffrence, then my child theme broke. Is there a way that I can fix it? Thank you
add_action(‘x_before_view_integrity__landmark-header’, ‘custom_blog_header01’);
function custom_blog_header01(){
if (is_singular(‘post’)) {
echo do_shortcode(‘[rev_slider alias=”about”]’);
}
}February 15, 2017 at 11:08 am #1372185Hi there,
Would you mind providing your FTP details so that we can check this?
Thank you.
February 15, 2017 at 1:13 pm #1372359This reply has been marked as private.February 15, 2017 at 1:19 pm #1372364This reply has been marked as private.February 15, 2017 at 10:11 pm #1372967Hello There,
Thanks for updating in! I am another staff investigating on this issue. I found out why it is not working.
#1] Though you have already a child theme, regretfully it is not active. Please have it activated. Bur before you do that, please backup your customizer settings by going to X Addons > Customizer Manager and download the XCS to your local computer. And then after doing that, just activate the child theme. Once the child theme is activated, please go back again to X Addons > Customizer Manager and import the XCS file. This step is crucial to make sure that you have the same customizer settings before and after activating the child theme.#2] The code will not work because when @jade replied, she assumed that you are using integrity since there was no given url. It turns out that you are using renew stack. You will need to update the given code and make use of this code instead:
add_action('x_before_view_renew__landmark-header', 'custom_blog_header01'); function custom_blog_header01(){ if (is_singular('post')) { echo do_shortcode('[rev_slider alias="aboutme"]'); } }
#3] You must make sure that the slide alias is valid and correct. Please edit the slider and find the shortcode from there. You will be needing the correct shortcode to be added in the code from #2.
[rev_slider alias="aboutme"]
Hope this helps.
February 15, 2017 at 11:38 pm #1373033Hi,
Thank you Rue, i will use this after my child theme is fixed somehow. Jade wanted my ftp details because I wrote, that my child theme broke after I tried to rectify the renew theme by myself. So I can’t use the child theme anymore it is broke, I don’t know how to fix it, either to uninstall it, thanks again:
“I added the above code and it still did not make a difference to my posts, sooo, as inexperienced as I were I changed: ‘x_before_view_integrity__landmark-header’ to the following ‘x_before_view_renew__landmark-header’because I thought, because I am using the renew stack this would make the diffrence, then my child theme broke. Is there a way that I can fix it? Thank you”
-
AuthorPosts