Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1361249

    DerekbyDesign
    Participant

    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

    #1361372

    Jade
    Moderator

    Hi 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.

    #1362470

    DerekbyDesign
    Participant

    Hi

    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!

    #1362575

    Christian
    Moderator

    That 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.

    #1362961

    DerekbyDesign
    Participant

    Hi,

    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!

    #1363148

    Joao
    Moderator

    Hi 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    #1364290

    DerekbyDesign
    Participant
    This reply has been marked as private.
    #1364944

    DerekbyDesign
    Participant
    This reply has been marked as private.
    #1365159

    Rad
    Moderator

    Hi 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!

    #1371934

    DerekbyDesign
    Participant

    Hi,

    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”]’);
    }
    }

    #1372185

    Jade
    Moderator

    Hi there,

    Would you mind providing your FTP details so that we can check this?

    Thank you.

    #1372359

    DerekbyDesign
    Participant
    This reply has been marked as private.
    #1372364

    DerekbyDesign
    Participant
    This reply has been marked as private.
    #1372967

    Rue Nel
    Moderator

    Hello 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"]

    http://prntscr.com/e9byhy

    Hope this helps.

    #1373033

    DerekbyDesign
    Participant

    Hi,

    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”