WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Quintus: custom-header.php adding Images (3 posts)

  1. ayosten
    Member
    Posted 6 months ago #

    I am in the process of moving our website from blogger to WordPress. I am not familiar with PHP at all and I am trying to add a couple of navigation images to the header of our blog. I have not yet connected our domain, so here is our temporary link... http://0391991.netsolhost.com/WordPress/

    This is the code that I want to add, but it is not showing up when I add it to the custom-header.php file.

    <div id="flagMBS"><a href="http://www.modabakeshop.com" target="_blank"><img src="http://0391991.netsolhost.com/WordPress/wp-content/uploads/2014/01/BAKESHOP.png"></a></div>
    <div id="flagShop"><a href="http://storefront.unitednotions.com/storefrontCommerce/" target="_blank"><img src="http://0391991.netsolhost.com/WordPress/wp-content/uploads/2014/01/SHOP.png"></a></div>

    I also have the following CSS in the style.css file...

    #flagMBS {
    	height: 100px;
    	width: 100px;
    	float: left;
    	position: absolute;
    	margin: 0px 0 0 200px;
    }
    #flagShop {
    	height: 100px;
    	width: 118px;
    	float: left;
    	position: absolute;
    	margin: 0px 0 0 85px;
    }

    I was able to get the navigation images to show up using a sidebar Text/HTML Widget. see example: http://modafabrics.wordpress.com/
    The only problem with this is that if have a single column page layout, then the navigation flags disappear because there is no sidebar visible. I want to make these navigation flags show on the header file so they show up no matter what I make visible on the blog and sidebar.

  2. batharoy
    Member
    Posted 6 months ago #

    You should create a child-theme for any php edits or it will be overwritten with a theme update.

    That being said, add the links in header.php instead. Then the css in style.css in the child theme.

  3. ayosten
    Member
    Posted 6 months ago #

    Thanks, that helped.

Reply

You must log in to post.

About this Topic