WordPress.org

Ready to get started?Download WordPress

Forums

changing banner (12 posts)

  1. giec
    Member
    Posted 2 years ago #

    Hi guys, I would like to change the banner of my theme, but I can't find it in the css/html. COuld anybody kindly let me know how to do it? I tam planning to add a sort of logo instead of the text and change the images as well
    ANy hekp much appreciated, here's the link
    thanks a lot

  2. brazley
    Member
    Posted 2 years ago #

    do you have a link to the site?
    which theme are you using?
    typically you will change this in the appearance > header area

    courtney brazley
    :end

  3. giec
    Member
    Posted 2 years ago #

    oh apologies, I thought i included the link, here it is http://andys.antonioborrillo.co.uk/wp/?page_id=24

  4. mattskills
    Member
    Posted 2 years ago #

    the images are in .../twentyeleven/images/headers/

    this is a set of banners , one is chosen at random on every page load.

  5. giec
    Member
    Posted 2 years ago #

    ok, so if I remove all the images from there and add my own, that will sort everything out without breaking anything yeah? Also something related to this, I have noticed that the images in my header have all an absolute path and not relative as I would have expected. Is there a reason for that?

  6. giec
    Member
    Posted 2 years ago #

    also, there are other things I would like to change in the banner, like removing the link from the text. Where is this info stored?

  7. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    you can add custom headers under:

    dashboard - appearance - header - Select Image

    or for a specific page or post, add a 'featured image' with minimum dimensions of 1000 * 288 px to that page or post

    the link on your site title is coded in header.php;
    (add a copy of header.php into the child theme and edit it there)

    find:

    <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>

    to remove the link, change to:

    <h1 id="site-title"><span><?php bloginfo( 'name' ); ?></span></h1>
  8. giec
    Member
    Posted 2 years ago #

    thanks fantastic, but when I change the line, the h1 style disappear, leaving me with this http://andys.antonioborrillo.co.uk/wp/?page_id=24

  9. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    what was styled before was #site-title a { ... };

    now that you removed the link, the styling goes back to the default style for h1 - which is a small black font.

    to replicate the formatting of the linked site title for your unlinked site title, add this to style.css of your child theme:

    h1#site-title span {
    	color: #009900;
    	font-size: 30px;
    	font-weight: bold;
    	line-height: 36px;
    	text-decoration: none;
    }
  10. giec
    Member
    Posted 2 years ago #

    Oh I see what you mean, thanks. I will add your css rule on. One thing though, why is the h1 style defaulted to a small black font? Shouldn't it be a proper h1by default?

  11. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    why is the h1 style defaulted to a small black font?

    because that is what is done in the 'reset' section at the top of style.css.

  12. giec
    Member
    Posted 2 years ago #

    thanks alchymyth, very helpful : - )

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.