WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] adding an image header to Royale 1.3 theme (17 posts)

  1. azzatron
    Member
    Posted 6 years ago #

    hi there, im realyl stuck with this and was hoping someone out there could help.
    bascially im trying to fond a way of adding an image header to a theme that doesnt have one (the Royale 1.3 to be specific) http://www.onehertz.com/portfolio/wordpress/
    im pretty stuck, and have written to the origianl designer of the theme, but have not received a reply.
    can anyone else offer and tips etc?
    thanks for your time

  2. azzatron
    Member
    Posted 6 years ago #

    nobody?
    hmm

  3. cemiotika
    Member
    Posted 6 years ago #

    You resolved it?, if you... put RESOLVED!,

    If not... let me know, and i will tell you the solution,

    Cheerz!,

  4. azzatron
    Member
    Posted 6 years ago #

    hi there, thanks for the reply :)
    no i havent resolved this yet.
    could you help me with it please?
    its very much appreciated. cheers

  5. cemiotika
    Member
    Posted 6 years ago #

    You want to change your your actual image header?,

    Just see the name of the image, and create a new one with the same size and name, and upload it to the correct folder,

    Now? or you need more specific detail?

    Cheerz!,

  6. azzatron
    Member
    Posted 6 years ago #

    Thanks for the reply, but it doesnt really solve my problem :(

    The theme i mentioned doesnt actually have an image header built into it. I was wondering if there was a way to add one in manually?
    I'm, using the Royale 1.3 from here : http://www.onehertz.com/portfolio/wordpress/

    I'm sure it possible in some way, but i havent been able to find out how yet :(
    thanks again for your time!

  7. Geezerjim
    Member
    Posted 6 years ago #

    You should be able to get a good start by looking here.

  8. azzatron
    Member
    Posted 6 years ago #

    cheers, thanks for the reply...
    im not having nay luck yet following the info in that link.
    guess ill have to look for a new theme =/

  9. joetaxpayer
    Member
    Posted 6 years ago #

    Not so fast, I'm getting good at this. See http://www.cafebaby.com
    a domain I own, but haven't marketed. Using it for testing. Yes, those were actually my bagels and lox, if you are wondering.

    Go to your dashboard and choose presentation. It offers a tab "HTML inserts" go there.

    I entered this line:
    <img src="http://www.cafebaby.com/wp-content/themes/royale/images/kubrickheader.jpg"

    My image was named kubrick from another post's experiment, but you get the idea. The them writer did a great job letting someone edit like this. You can see I'm a new WP user, and with a bit of tinkering can do just what you and a few recent posters asked regarding images. So far, it took patience and a bit of common sense. And some friendly fold pointing me in the right direction.

  10. azzatron
    Member
    Posted 6 years ago #

    ahh yes, thanks for the reply, it works! hehe
    it looks a little crude, but i think its a good starting point.. just need to figure out how to integrate it with the overall theme design a bit more..
    will have to try adn put it into the actual header file i think..
    but yes, thanks again :)

  11. azzatron
    Member
    Posted 6 years ago #

    ok, so i've opened up my header file and think i've found the place to insert my header image in.
    does this seem like the right place?

    <div id="header">
    	<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    	<div class="description"><?php bloginfo('description'); ?></div>
    	<ul class="pages">
    		<li class="page_item"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home','royale'); ?></a></li>
    		<?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&exclude='.get_option('royale_exclude_pages')); ?>
    	</ul>
    </div>

    i pasted an image link in there amd it showed up roughly inthe right palce on the blog, however looked terrible as it covered up some links, and wasnt centered or justified to the left for example.
    can anyone offer any help with the coding of this?
    ive reached the limit of my ability at this point (or lack there of)
    thanks again

  12. azzatron
    Member
    Posted 6 years ago #

    actually, should i be editing the style.css file instead?
    this is from there

    #header {
      text-align: left;
      width: 100%;
      background: url(images/<?php echo $overlay; ?>);
    <?php if ($ie||$ie7): ?>
      background: url(images/1x1.gif);
      filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $stylesheet_directory; ?>/images/<?php echo $overlay; ?>', sizingMethod='scale');
    <?php endif; ?>
      height: 140px;
      position: relative;
      margin-bottom: 20px;
    }

    im such a noob

  13. azzatron
    Member
    Posted 6 years ago #

    this is a link to my blog if it makes any difference

    http://www.arransalerno.com/blog

  14. shadow
    Member
    Posted 6 years ago #

    Are you all sorted now azzatron? If not, which site are you referring to exactly?

    http://www.arransalerno.com/blog OR http://www.onehertz.com/portfolio/wordpress/

  15. azzatron
    Member
    Posted 6 years ago #

    hi there, no im not sorted yet, thanks for the reply.
    the site im trying to put a header on is http://www.arransalerno.com/blog

    http://www.onehertz.com/portfolio/wordpress/ was the link to the theme im using..

    Im not sure what piece of code in what file i'm meant to be editing. Also, i dont exactly know how to format everything, etc.
    I'm still looking for a bit of help.
    Cheers

  16. ddocks
    Member
    Posted 6 years ago #

    Had the same problem and seen you are still having yours!

    Edit header.php
    Look for
    </head>
    <?php
    $bodytag = get_option('royale_inserts_body');
    echo (preg_match("/<body/i",$bodytag) ? $bodytag : "<body onload=\"royale_init()\">");

    $tag_blogname = get_option('royale_tag_blogname');
    $tag_blogdesc = get_option('royale_tag_blogdesc');
    ?>

    <div id="header" class="png">
    <<?php echo $tag_blogname; ?> id="blogname">/"><?php bloginfo('name'); ?></<?php echo $tag_blogname; ?>>
    <<?php echo $tag_blogdesc; ?> id="blogdesc"><?php bloginfo('description'); ?></<?php echo $tag_blogdesc; ?>>
    <ul class="pages">
    <li class="page_item">/"><?php _e('Home','royale'); ?>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&exclude='.get_option('royale_exclude_pages')); ?>

    </div>
    <div id="page">
    <?php echo get_option('royale_inserts_top'); ?>

    After this line:
    <div id="header" class="png">

    Insert:
    <table width="100%" height="100" border="0" cellpadding="1" cellspacing="1">
    <tr valign="top">
    <td><img src="http://www.your image.jpg" width="800" height="100"></td>
    </tr>
    </table>

    You can size to your image.

    Hope this helped!

  17. azzatron
    Member
    Posted 6 years ago #

    oh wow, i just logged on today by pure chance and saw your reply. Thanks for taking the time to reply to my thread. I'm going to try later on.
    Cheers :)

Topic Closed

This topic has been closed to new replies.

About this Topic