Tagged: , ,

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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

    #235583

    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>";

    Cheers!
    Yigit

    #235650

    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,

    #236651

    Hey!

    It should be

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

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

    Cheers!
    Devin

    #236848
    This reply has been marked as private.
    #237768

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

    #238056
    This reply has been marked as private.
    #238247

    Hey!

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

    Cheers!
    Ismael

    #238273

    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 7 months, 2 weeks ago by  TheElear.
    #239522

    Hi,

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

    Regards,
    Josue

    #239637
    This reply has been marked as private.
    #239699

    Now it’s taking effect:

    http://serwer1305481.home.pl/autoinstalator/wordpress3

    Regards,
    Josue

    #239718

    Hi Josue,

    Many thanks! What have you done to achieve this?

    kind regards,

    #239719

    There were a quote typo in header.php.

    Regards,
    Josue

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

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