WordPress.org

Ready to get started?Download WordPress

Forums

Changing heading in corporate theme (26 posts)

  1. aniswander
    Member
    Posted 5 years ago #

    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.

  2. equaldesign
    Member
    Posted 5 years ago #

    Have you a link so that I can understand the problem?

  3. Saurus
    Member
    Posted 5 years ago #

    Geez, equaldesign - you mean you're not clairvoyant? It's that colored portion with the people in it! LOL...

  4. moussan
    Member
    Posted 5 years ago #

    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.

  5. aniswander
    Member
    Posted 5 years ago #

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

  6. robbyg13
    Member
    Posted 5 years ago #

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

  7. adamsmark
    Member
    Posted 5 years ago #

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

  8. adamsmark
    Member
    Posted 5 years ago #

    Anyone?

  9. esmi
    Theme Diva & Forum Moderator
    Posted 5 years ago #

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

  10. adamsmark
    Member
    Posted 5 years ago #

    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?

  11. esmi
    Theme Diva & Forum Moderator
    Posted 5 years ago #

    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;?>

  12. adamsmark
    Member
    Posted 5 years ago #

    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; ?>
  13. esmi
    Theme Diva & Forum Moderator
    Posted 5 years ago #

    <?php if(!is_single()):?>
    <div id="introtext" class="span-15">
    	<?php readintro('intro.html'); ?>
    </div>
    <?php endif;?>
  14. adamsmark
    Member
    Posted 5 years ago #

    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.

  15. adamsmark
    Member
    Posted 5 years ago #

    -- 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.

  16. esmi
    Theme Diva & Forum Moderator
    Posted 5 years ago #

    That should have worked. Let's try another tack...

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

  17. adamsmark
    Member
    Posted 5 years ago #

    I gathered I was to replace this --

    <?php if (file_exists(TEMPLATEPATH . '/' . 'intro.html')) : ?>

    With this --

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

    But that only caused the site to go blank.

  18. esmi
    Theme Diva & Forum Moderator
    Posted 5 years ago #

    The code format button unfortunately managed to encode the ampersands. It's a known bug that I forgot about.

    The correct code snippet: http://wordpress.pastebin.ca/1399001

  19. adamsmark
    Member
    Posted 5 years ago #

    Replacing that one line with your suggestion doesn't change the behavior of the theme. The intro.html text still appears on all pages.

  20. jaikumarm
    Member
    Posted 4 years ago #

    Add <?php if ( is_home() ) : ?> and <?php endif; ?> at the begining and end of the file_exists block.

    `<?php if ( is_home() ) : ?>
    <?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/people.png" alt="<?php bloginfo('description'); ?>" />
    </div>
    </div>
    <?php endif; ?>
    <?php endif; ?>`

  21. adamsmark
    Member
    Posted 4 years ago #

    That works, thanks.

  22. guru.cat
    Member
    Posted 4 years ago #

    Should it be edited trough FTP or can I edit from Admin control panel?

  23. bawalker2001
    Member
    Posted 4 years ago #

    I would like to add 2 new page templates to this same Coporate Theme - 1 that moves the sidebar to the left and one that has no sidebar with just a wide center content - can someone help me with how to easily to this in this corporate theme? Thank you!

  24. andyissott
    Member
    Posted 4 years ago #

    Sorry only just started using this theme on WordPress and I cant find where the intro.html file is stored so I cant edit the header text.

    Is it in Appearances > Editor ??

  25. bachome
    Member
    Posted 4 years ago #

    Does any of You know how to move the sidebar from the right to the left in the Corporate theme?

    I tried to but the <?php get_sidebar(); ?> after the header and befre the post...but it doesn't fit in the design. It floats on the left outside of the design...

  26. bachome
    Member
    Posted 4 years ago #

    I don't understand the meaning of the class="span-5 append-1 last" in the sidebar.php file.

Topic Closed

This topic has been closed to new replies.

About this Topic