WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty Eleven - Tag Line (12 posts)

  1. PJMitchell07
    Member
    Posted 6 months ago #

    Hi I am updating a currently tactical website (greatbaddowbowlingclub.co.uk/wordpress) using twenty eleven theme but want to know how can I extend my tagline across 2 lines or alternatively add a second tagline?

  2. Bloke
    Member
    Posted 6 months ago #

    Do you mean the text in the header? You have two lines on top. I would create a child theme and enter the text in header.php

  3. PJMitchell07
    Member
    Posted 6 months ago #

    Hi and thanks. Being a luddite and a non-coder need a bit more help. I have created a child theme, assume I now add a header.php file to that, but what do I then insert in this file?

  4. PJMitchell07
    Member
    Posted 6 months ago #

    Follow-up
    I've also now removed the search form from the title and want to centre both the Site Title and the Site Description. I've looked through the forum posts and tried the following, but does not appear to work - any help appreciated.

    #site-title, #site-description {
    margin: 0 auto; text-align: center;
    }

  5. Bloke
    Member
    Posted 6 months ago #

    Looks like you got it fixed.

  6. PJMitchell07
    Member
    Posted 6 months ago #

    Yeah seems like it, well the alignment anyway. Going back to first post what do I need to put into header.php so that I have 'Affiliated to...' on the next line - spacebar doesn't work?

  7. Bloke
    Member
    Posted 6 months ago #

    It wants to put your entire title on one line. So shorten your site title in the admin. Then in the code of the header right before the </title>

    Make it look like this and put at br tag before affiliated. Its removing it when I post: ?>Affiliated to....</title>

  8. PJMitchell07
    Member
    Posted 6 months ago #

    Hi Bloke, thanks for your advice, will give this a go.

  9. PJMitchell07
    Member
    Posted 6 months ago #

    Hi Bloke - shortened the tagline/description and insert rest as I think you suggested - see below, but only results in shortened description appearing.

    // Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
    
    	?>Affiliated to Bowls England; E.C.B.A.; E.C.W.B.A.; C & D.B.A.; C.M.B.L.& C.L.B.L.</title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[if lt IE 9]>
    <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    <![endif]-->

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  10. Bloke
    Member
    Posted 6 months ago #

    Sorry about that. About line 75
    <h2 id="site-description"><?php bloginfo( 'description' ); ?><br>Affiliated to....</h2>

  11. PJMitchell07
    Member
    Posted 6 months ago #

    Hi Bloke - been out of circulation, but now read and updated my code - works great. Many thanks for all your help.

  12. PJMitchell07
    Member
    Posted 5 months ago #

    Hi
    I am having trouble aligning the font for the entry title on all pages in my website (greatbaddowbowlingclub.co.uk/wordpress)I am using a child theme and have applied the following code
    .singular .entry-title {
    color: #000000;
    font-size: 26px;
    font-weight: bold;
    line-height: 40px;
    }
    However whilst my Home page has this other pages style.css are applying 36px.
    What am I missing?

Reply

You must log in to post.

About this Topic

Tags