WordPress.org

Support

Support » How-To and Troubleshooting » Changing heading in corporate theme

Changing heading in corporate theme

  • This is probably very basic but I have looked through the forum all day long and am unable to get resolve. How do I change the message: Special message to the visitors and the information beneath it within the corporate introduction header. I’m not referring to the very top part that announces your blog title, but the colored portion with the people in it. I have a feeling it has something to do with the css but am not sure enough to do anything with it. Please help.

Viewing 15 replies - 1 through 15 (of 25 total)
  • Have you a link so that I can understand the problem?

    Geez, equaldesign – you mean you’re not clairvoyant? It’s that colored portion with the people in it! LOL…

    Editing the intro text:
    In order to edit the text that is showed on the main intro you need to open the file intro.html that is in this themes folder.
    This file can contain any text and html tags, so once you open it, you can edit it as you would like and the text you entered will appear in the intro.
    For best practice, use the <h2> tag for the header and the <p> tag for the paragraph. If you want to drop down a line use the
    tag.

    If you do not want the intro to appear at all, just delete the intro.html file and the intro section will not be shown in your site.

    Thanks for not making me feel like an idiot Moussan. I appreciate your help more than you know! You are a good person. 🙂

    How do you change the Greeting message into an image message? Any feedback is greatly appreciated.

    How can a person make the intro.html text appear only on the main page (the index page), not single post pages, etc.?

    Anyone?

    esmi

    @esmi

    Forum Moderator

    Try removing all references to the intro.html file in single.php?

    It’s included in the header. I created a second header (header2.php) without the “get intro” code, but I’m not sure how to get the single page file to grab header2.php.

    Here’s what’s on the top of the single.php file:

    <?php get_header(); ?>

    How can I direct it to grab header2.php, not header.php?

    esmi

    @esmi

    Forum Moderator

    Unlike sidebars, there’s currently no inbuilt option to call an alternative header via it’s filename. I’d stick with just one header but make the call to intro.html conditional on the currently display NOT being a single page – e.g.:

    <?php if(!is_single()):?>
    [… call to intro.html …]
    <?php endif;?>

    Where precisely would it go? This is the code:

    <?php if (file_exists(TEMPLATEPATH . '/' . 'intro.html')) : ?>
    			<div id="introcontainer" class="span-22 prepend-1 append-1 last">
    				<div id="intro">
    					<div id="introtext" class="span-15">
    						<?php readintro('intro.html'); ?>
    					</div>
    					<img id="introicon" src="<?php bloginfo('template_directory'); ?>/images/mark-adams.jpg" alt="<?php bloginfo('description'); ?>" />
    				</div>
    			</div>
    			<?php endif; ?>
    esmi

    @esmi

    Forum Moderator

    <?php if(!is_single()):?>
    <div id="introtext" class="span-15">
    	<?php readintro('intro.html'); ?>
    </div>
    <?php endif;?>

    I’ve tried plugging in various combinations of what’s proposed above, but I can’t get it to work. I’m not a programmer, just a novice WordPress blogger, so please bear with me.

    Here is all of the header.php code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="http://gmpg.org/xfn/11">
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    	<meta name="robots" content="index,follow" />
    	<meta name="revisit-after" content="7 Days" />
    
    	<title>
    		<?php if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?>
    		<?php if ( is_search() ) { ?><?php echo the_search_query(); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_page() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_category() ) { ?>Archive <?php single_cat_title(); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_month() ) { ?>Archive <?php the_time('F'); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_tag() ) { ?><?php single_tag_title();?> | <?php bloginfo('name'); ?><?php } ?>
    	</title>
    
    	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/screen.css" type="text/css" media="screen, projection" />
    	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/print.css" type="text/css" media="print" />
    	<!--[if IE]>
    		<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/ie.css" type="text/css" media="screen, projection" />
    	<![endif]-->
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen, projection" />
    	<!--[if lt IE 7]>
    		<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/ielt7.css" type="text/css" media="screen, projection" />
    	<![endif]-->
    	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="shortcut icon" type="image/x-png" href="<?php bloginfo('template_url'); ?>/images/favicon.png" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<?php wp_head(); ?>
    </head>
    
    <body>
    	<div class="container">
    		<div id="top" class="span-24">
    			<div class="menu">
    				<ul>
    					<li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
    					<?php wp_list_pages('title_li=&amp;depth=1&amp;sort_column=menu_order'); ?>
    					<li><a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe to RSS feed"><img src="<?php bloginfo('template_directory'); ?>/images/feed.png" alt="Subscribe to RSS feed" /></a></li>
    				</ul>
    			</div>
    		</div>
    		<div id="contenttop" class="span-24"></div>
    		<div id="contentwrapper" class="span-24">
    			<div id="header" class="span-22 prepend-1 append-1">
    				<div id="title" class="span-15 prepend-1">
    					<a href="<?php bloginfo('url'); ?>"><img class="logo" src="<?php bloginfo('template_directory'); ?>/images/logo.jpg" alt="<?php bloginfo('name'); ?>" /></a>
    					<div id="blogtitle">
    						<h1><?php bloginfo('name'); ?></h1>
    						<h2><?php bloginfo('description'); ?></h2>
    					</div>
    				</div>
    				<div id="searchbar" class="span-5 append-1 last">
    					<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    				</div>
    			</div>
    
    <?php if (file_exists(TEMPLATEPATH . '/' . 'intro.html')) : ?>
    			<div id="introcontainer" class="span-22 prepend-1 append-1 last">
    				<div id="intro">
    					<div id="introtext" class="span-15">
    						<?php readintro('intro.html'); ?>
    					</div>
    					<img id="introicon" src="<?php bloginfo('template_directory'); ?>/images/mark-adams.jpg" alt="<?php bloginfo('description'); ?>" />
    				</div>
    			</div>
    			<?php endif; ?>

    If I were to replace that code, what would I replace it with? Note, I want the intro text to appear on the main page, but not on the single pages or single post pages.

    — bump —

    The “Corporate” theme is really cool, but I’d like the intro.html to show up only on the main page, and dissappear everywhere else.

    Thanks.

    esmi

    @esmi

    Forum Moderator

    That should have worked. Let’s try another tack…

    <?php if (file_exists(TEMPLATEPATH . '/' . 'intro.html') &amp;&amp; !is_single()) : ?>

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Changing heading in corporate theme’ is closed to new replies.
Skip to toolbar