This topic has 18 replies, 2 voices, and was last updated 8 years by wilfriedMarseille.

  • Author
  • #90026
     wilfriedMarseille
    Participant

    Hello in a old post a moderator say me to put image in all post put this code.

    `add_action(‘kleo_before_content’,’my_header_image’);
    function my_header_image() {
    echo ‘<img class=”banner” src=”http://www.zikrea.com/wp-content/uploads/2015/10/Un_blog_mao_associatifOK.jpg&#8221; />’;
    }`

    And it was good so i try this code to put a revolution slider in all my post
    `add_action(‘kleo_before_content’,’my_header_image’);
    function my_header_image() {
    echo ‘[rev_slider alias=”acc3″]’;
    }`

    And i saw [rev_slider alias=”acc3″] write in the place of image so i try the same code without ‘  ‘ at the begining and the end of [rev_slider alias=”acc3″] like this code

     

    `add_action(‘kleo_before_content’,’my_header_image’);
    function my_header_image() {
    echo [rev_slider alias=”acc3″];
    }`

     

    And i saw a white pages with that. So how can i put a revolution slider in all my pages please ?

    If you love Ableton check my blog :
    www.zikrea.com

    #90104
     Radu
    Moderator

    Hi,

    TRy with this snippet

    COPY CODE
    
    function KleoAddSlideUnderPosts( $content ) {
    
        if( is_single() ) {
    
            $revslidershortcode = '[rev_slider alias="acc3"]';
            $content .= $revslidershortcode;
        }
    
        return $content;
    
    }
    add_filter('the_content', 'KleoAddSlideUnderPosts');
    
    

    Let me know

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #90110
     wilfriedMarseille
    Participant

    No i have nothing with this code. The website workgood but i don’t get my slider ..

    If you love Ableton check my blog :
    www.zikrea.com

    #90181
     Radu
    Moderator

    Hi,

    Can you please provide admin credentials ?

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #90205
     wilfriedMarseille
    Participant
    This reply has been set as private.
    #90325
     Radu
    Moderator

    hi,

    It seems that i don’t have access to editor , please provide FTP.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #90372
     wilfriedMarseille
    Participant
    This reply has been set as private.
    #90550
     Radu
    Moderator
    This reply has been set as private.
    #90642
     wilfriedMarseille
    Participant
    This reply has been set as private.
    #90927
     Radu
    Moderator

    Unable to connect, please provide correct ftp details, exact username, hostname port etc, test it before post here.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #92158
     wilfriedMarseille
    Participant
    This reply has been set as private.
    #93126
     wilfriedMarseille
    Participant

    Hello,
    the logins is good let me know when you test it thanks you 🙂

    If you love Ableton check my blog :
    www.zikrea.com

    #93197
     Radu
    Moderator

    It’s done,

    I’ve used this function

    COPY CODE
    
    
    function KleoAddSlideUnderPosts( $content ) {
     
        if( is_single() ) {
     
            $revslidershortcode = do_shortcode('[rev_slider alias="acc3"]');
            $content .= $revslidershortcode;
        }
     
        return $content;
     
    }
    add_filter('the_content', 'KleoAddSlideUnderPosts');
    

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #93616
     wilfriedMarseille
    Participant

    Hello,
    I put your code in function.php of my child theme. And Is not working …. I got a white page

    If you love Ableton check my blog :
    www.zikrea.com

    #93670
     Radu
    Moderator

    Hi,

    The code worked i’ve setted up for you and i’ve tested and it worked fine

    Please remove the code that you have pasted and paste again from here http://pastebin.com/raw/7RfqDRpU

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #93688
     wilfriedMarseille
    Participant

    Hi
    Thanks you but i don’t want my slider under post. I would like get it at the top of post like the first than we see but the first in an image…

    If you love Ableton check my blog :
    www.zikrea.com

    #93691
     Radu
    Moderator

    Hi,

    Replace with this

    http://pastebin.com/raw/NDpTTCGm

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #95025
     wilfriedMarseille
    Participant

    Hi,

    Do you test it ? Because when i replace with the code in the last link than you give me, i got a white page.

    COPY CODE
    function KleoAddSlideUnderPosts( $content ) {
        if( is_single() ) {
            $revslidershortcode = do_shortcode('[rev_slider alias="acc3"]');
            $content = $revslidershortcode . $content;
        }
        return $content;
    }
    add_filter('the_content', 'KleoAddSlideUnderPosts');

    If you love Ableton check my blog :
    www.zikrea.com

    #95026
     wilfriedMarseille
    Participant

    Sorry it was an error of me. Is Work on now. Thanks you 🙂

    If you love Ableton check my blog :
    www.zikrea.com

Viewing 19 posts - 1 through 19 (of 19 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?