If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Tagged: , ,

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
  • #235097

    Hi All,
    I need to add a site title in container.header_meta (where normally next event countdown clock is),
    Which file should I modify?
    And what code to add?

    Many thanks


    Hi TheElear!

    Please go to Appearance > Editor and open Header.php file and find

    echo "<div class='container header_meta'>";

    and add following code right below it

    echo "<div class='wp-title'>".wp_title()."</div>";



    Hi Yigit,

    I need the site/blog title not page title. Would that be correct?:
    echo “<div class=’bloginfo’>”.bloginfo(‘name’).”</div>”;
    Is class=’bloginfo’ ok to be used?

    When I applied this the source code looks like that:

    <div class="container header_meta">
       Parafia Jezusa Miłosiernego Croydon
       <div class="bloginfo"></div> 
       <ul class="noLightbox social_bookmarks icon_count_3"></ul>

    That means that if I style class=’bloginfo’ in the sylesheet this is not going to be applied to the site title, is it?

    many thanks,



    It should be

    <div class=’new-bloginfo’> <?php bloginfo('name'); ?> </div>

    It just depends on exactly the placement you want but thats the gist of it.


    This reply has been marked as private.

    Its just the difference in using “” or ”. But in your css the rule would be with no quotes.

    This reply has been marked as private.


    Please post the header.php code on pastebin.com or just post the the code for the blog info area.



    Hi Ismael,

    This is the header.php: http://pastebin.com/AuYdZMbf
    And this is styling in styles.css:

    /* Styling of the site name in top left area of page */
    .new_bloginfo {
    	width: 700px;
    	height: 40px;
    	margin: -20px 0px 0px;
    	font-size: 20px;

    many thanks,

    • This reply was modified 2 years, 4 months ago by  TheElear.


    Can you create an administrator account and post it here as a private reply?


    This reply has been marked as private.

    Now it’s taking effect:



    Hi Josue,

    Many thanks! What have you done to achieve this?

    kind regards,


    There were a quote typo in header.php.


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

The topic ‘Add site title in the header’ is closed to new replies.