WordPress.org

Ready to get started?Download WordPress

Forums

How to add tagline to theme (3 posts)

  1. headless99
    Member
    Posted 1 year ago #

    I am using a Child of the Simple-Style-Responsive theme. This theme does not have any coding for a tagline and I have been trying to add it without success.
    I have done various mods to the header.php file but get very bizarre results none of which are any good.
    I have searched the forums but I have not been able to find any information that is directly related to what I am trying to do. I have downloaded and installed the WordPress SEO plugin but have had no luck with that either.

    Any help appreciated; I just need to be pointed in the right direction!

    Cheers

    Chris

  2. Scott Fennell
    Member
    Posted 1 year ago #

  3. headless99
    Member
    Posted 1 year ago #

    Hi Scott

    Thanks for the reply. I am able to display the tag line but it appears in the top left hand corner of the page. Initially I included the code in a functions.php to get the tag line displaying as above and then went to a header.php as below:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    	<body oncontextmenu="return false;">
    </body>
    
    <!-- start header -->
    
    <div id="header">
    
    <div class="box">
    
    	<!-- logo -->
    
        <div id="logo">
    
        	<div><span><a>" title="<?php bloginfo('title'); ?>"><?php if ( get_option( 'photography_logo' ) <> "" ) { ?><img src="<?php echo get_option( 'photography_logo' ); ?>" alt="logo" /><?php } else { ?><?php bloginfo('title'); ?><?php } ?></a></span></div>
    		<div class="description">
    			<?php bloginfo('description'); ?>
    		</div>
    
        <!-- logo -->
    
    <!-- end header -->
    
    <!-- start navigation -->
    
    <div id="navigation">
    
    	<?php wp_nav_menu (array ( 'theme_location' => 'main-nav-menu') ); ?>
    
    	<?php dropdown_menu (array ( 'theme_location' => 'main-nav-menu') ); ?>
    
    </div>
    
    </div>
    
    </div>

    All this achieves is to have the all the slide photos display at once on the screen, the menu and the Title and Tag line are displayed from the top left of the page with the menu cascading down, expanded.
    I have tried various other combinations of code but this is the closest I have come so far.

    My site is headless.id.au

Topic Closed

This topic has been closed to new replies.

About this Topic