Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1347820
    max38320
    Participant

    hi,

    how can i add h1 on this page ?

    https://remerciementdeces.fr/blog/

    Thank you

    #1347884
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    Please add following code in Customize -> Custom -> JavaScript :

    jQuery("<div class='wpb_raw_code wpb_content_element wpb_raw_html'><div class='wpb_wrapper'><div style='text-align: center;'><div class='trait title-left'><div class='t1 bb'></div><div class='t2 bb'></div><div class='t3 bb'></div></div><div class='title-princ'><h1 class='entry-title'>Blog</h1></div><div class='trait'><div class='t1 bb'></div><div class='t2 bb'></div><div class='t3 bb'></div></div></div></div></div>").insertBefore(".blog .x-container.max.width.main");

    Hope it helps.

    #1350166
    max38320
    Participant

    Hi, no it’s not help me, because google not execute javascript. Need to be add in PHP.

    Thank you

    #1350269
    Rupok
    Member

    Hi there,

    Thanks for writing back. In that case you need to change the template with Child Theme.

    Cheers!

    #1374670
    max38320
    Participant

    Hi, Thank you.

    I have a child theme already, my question is where add the property in child theme.

    Thank you for your answers.

    #1374838
    Paul R
    Moderator

    Hi,

    You can add this in your child theme’s functions.php file.

    
    function add_blog_title(){
       if(is_home()) { 
            echo '<div class="x-container max width t-container"><h1 class="blog-title">Blog</h1></div>';
       }
    }
    add_action('x_after_view_global__slider-below', 'add_blog_title');
    

    Hope that helps.

  • <script> jQuery(function($){ $("#no-reply-1347820 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>