Site Title (Main) Can I make each page with a different main heading.
-
Hi
I have done a lot of looking around for an answer to this and thought I had found what I wanted today, I tried it but it doesn’t work.I want to change the Main Title Heading for some of my site pages.
This is what my header.php is at the moment:
<title>
<?php wp_title(‘«’, true, ‘right’); ?>
<?php bloginfo(‘name’); ?> </title>Here is some code I found and what was suggested would be the answer:
<title><?php if(is_home()) { echo bloginfo(‘name’); echo ‘ | ‘; echo bloginfo(‘description’); } else { echo wp_title(‘ | ‘, false, right); echo bloginfo(‘name’); } ?></title>
But after deleting the original code and replacing it with this snippet I still cannot seem to change the titles on individual pages, as soon as I make a change it changes every page the same.
Please note here guys, I know zip about coding, it really is above my head, unless I can paste it I’m stuck, plus I don’t even know if this is even possible, any help with this will be much appreciated.
Below is the whole contents of my header.php file.
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml” <?php language_attributes(); ?>>
<head profile=”https://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /><title>
<?php wp_title(‘«’, true, ‘right’); ?>
<?php bloginfo(‘name’); ?> </title><?php if(get_option(‘marketing_style’)!=”){?>
<link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/<?php echo get_option(‘marketing_style’); ?>” media=”screen” />
<?php }else{?>
<link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/red.php” media=”screen” />
<?php }?>
<link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/style.css” media=”screen” /><link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<?php wp_head();?>
<?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?></head>
<!–<style type=”text/css” media=”screen”>
@import url( <?php bloginfo(‘template_directory’); ?>/style.css );
</style> –>
<!–[if lte IE 6]>
<script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/iepngfix_tilebg.js”></script>
<![endif]–><body>
<div id = “bgwrapper”>
<div id=”light”>
<div id = “shadow”>
<div id = “wrap”>
<!– Header –>
<div id=”header”>
<div id=”nav”>-
<li <?php if(is_home()) { ?> class=”current_page_item”<?php } ?>>
“><span>Home</span>
<?php wp_list_pages(‘link_before=<span>&link_after=</span>&sort_column=menu_order&depth=1&title_li=&exclude=’.getExludedItems()); ?></div>
<h3>“>
<?php bloginfo(‘name’); ?>
</h3>
<p class=”tagline”>
<?php bloginfo(‘description’); ?>
</p>
<div id=”rssfeeds”> “><img id=”rssicon” src=”<?php bloginfo(‘template_directory’); ?>/images/rss.png” alt=”Subscribe to RSS” /></div>
</div>
<!– End Header –>BTW the theme is Matt Carter’s Affiliate Marketing Theme
- The topic ‘Site Title (Main) Can I make each page with a different main heading.’ is closed to new replies.