• Resolved eli1356

    (@eli1356)


    HI
    I have tested a few diffrent codes – Also Css And also php
    this for example when adding it as a snippet it didn’t work
    }
    ul, ol {
    margin: 0 0 0 0 !important;
    }

    View post on imgur.com


    but when addin in into elemntor css it did work
    Can you please help
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello.

    You have a CSS error. Remove the } at the beginning.

    ul, ol {
    margin: 0 0 0 0 !important;
    }
    Thread Starter eli1356

    (@eli1356)

    Hi
    You where right about that I really had a problem with the code.
    However, I have a similar problem with a PHP code

    Here is the code that I am trying to use
    add_filter( ‘cartflows_page_template’, ‘change_page_template’, 10, 1 );

    function change_page_template( $page_template ){
    $page_template = ‘default’;

    return $page_template;
    }
    I have entered it into woody as needed as you can see here https://i.imgur.com/tl1pnvf.png only when adding the code into functios.php the code is working. Can you please help
    Thanks again for your amazing plugin and support!

    Read the documentation for this hook. It is possible to run it in the snippet – it’s too late. You can try this

    
    add_action('init', function(){
    add_filter( 'cartflows_page_template', 'change_page_template', 10, 1 );
    function change_page_template( $page_template ){
    $page_template = 'default';
    return $page_template;
    }
    });
    
    Thread Starter eli1356

    (@eli1356)

    Amazing! Thanks so much it worked!!!
    Not only an amazing plugin but also amazing support!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin not applying the code’ is closed to new replies.