Support » Theme: .TUBE » How to edit the body tag?

  • Resolved yuricgy


    I’d like to edit the body tag of the theme to put a popunder ad and a float ad. How do I do this? I alredy tried goin to the editor but didn’t find the tag. Can you help me, please?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Give something like this a shot in your child theme functions.php or a little plugin…

    function custom_body_attributes( $classes ){
        $classes[] = '" spy="scroll" data-target=".navbar';
        return $classes;
    add_filter( 'body_class','custom_body_attributes', 999 );

    Thank you very much for tring help me.
    The code didn’t work. The wordpress won’t let me change it but I find a plugin, like you sugest me, that worked just fine! The plugin was the “Maui Marketing Scripts, Tags & CSS”.

    • This reply was modified 11 months, 3 weeks ago by  yuricgy. Reason: Solve the problem

    1) This code is tested on working at the of a functions.php file of a .TUBE child theme

    2) You will need to modify what’s being set in line 3 to match the attributes your popunder and float ad require. The scrollspy stuff is just for example

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to edit the body tag?’ is closed to new replies.