Add title to top bar above header image
AnonymousAugust 25, 2011 at 9:04 pm #1623
I am trying to add the website title add tag line to the top bar in graphene. I have created a child theme that is working fine, and have edited the file styles.css in the child theme. I have tried a number of different things, but I cant get the title showing up here, can any suggest how I can get it working? the file reads:
Theme Name: Graphene Child
Theme URI: http://example.com/
Description: Child theme for the Graphene theme
Author: Your name here
Author URI: http://example.com/about/
/* Your modification goes here */
<?php echo '<'.$title_tag; ?> <?php echo $style; ?> class="header_title"><a> href="<?php echo home_url(); ?>" title="<?php esc_attr_e('Go back to the front page', 'graphene'); ?>"><?php bloginfo('name'); ?></a></<?php echo $title_tag; ?>>
<?php echo '<'.$desc_tag; ?> <?php echo $style; ?> class="header_desc"><?php bloginfo('description'); ?></<?php echo $desc_tag; ?>>
<?php do_action('graphene_header'); ?>
Please enclose code in backticks (on the “~” key) to prevent browsers from trying to render it. (I’ve fixed this for you.)
I am trying to add the website title add tag line to the top bar in graphene.
Well for starters, you are inserting PHP code into a stylesheet, where you should only have CSS code. (“Your modification goes here” means “Your styles modification goes here”.)
Somewhere (I’ll let you figure out exactly where) in the
<div id="top-bar">, you want to insert the following code:
<?php echo '<'.$title_tag; ?>
Or, if you want it to link back to the home page:
<a href="<?php echo home_url(); ?>" <?php echo '<'.$title_tag; ?></a>
Or something similar. I am NOT a PHP expert, and if I’ve pointed you in the wrong direction, I’m sure someone will give you a map and a compass before too long. Else, you may just figure it out on your own.
Have fun, and good luck.
And be sure to read the forum rules.
You must be logged in to reply to this topic.