This topic has 18 replies, 2 voices, and was last updated 10 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 ?

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

    #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

    Hello
    Is here
    username wilfried
    Password YWctlBBd13vvv1987#

    #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

    UserName: zikreacotq@ftp.zikrea.com
    HelloWilurtB020687 HelloWilurtB020687

    #90550
     Radu
    Moderator

    Hi,

    Can you review the ftp details, i cannot login

    what port ? 21,22 ?

    user is ok ? zikreacotq@ftp.zikrea.com or is zikreacotq@zikrea.com

    Cheers

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

    Serveur FTP : http://ftp.zikrea.com or http://ftp.cluster005.ovh.net
    Utilisateur (login) : zikreacotq
    password : HelloWilurtB020687

    I don’t know the port let me know if you need it, but i thinks is 21 but i don’t know where i have to find it.

    #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

    host : http://ftp.cluster005.ovh.net
    id : zikreacotq
    password : HelloWilurtB020687
    port : 21

    I just test it is working good.

    #93126
     wilfriedMarseille
    Participant

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

    #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

    #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…

    #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');
    #95026
     wilfriedMarseille
    Participant

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

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?