I found a few older questions that I think relate to what I am trying to do – I just am not sure where to add or modify my header.php and/or how to apply it to my questions.
I have also checked the Suffusion dedicated forum, but no luck and I haven’t yet had my username authorized to post a question there.
Thanks.
Other Forum Questions Referenced:
https://www.ads-software.com/support/topic/multiple-font-colors-within-blog-title-can-it-be-done?replies=4
https://www.ads-software.com/support/topic/blog-title-multi-colofont-style-size?replies=7
My Site:
https://hmloneonta.org/wordpress/
Thanks in advance
]]>My website’s front page currently does not have an H1 tag, but in order to optimize it for SEO, it needs to have one. How do I add an H1 tag for the blog logo on just the front page and not on the other pages and articles? Currently, the PHP is as follows:
<div class="header-middle clear">
<div class="logo-header <?php if ( !get_option('unspoken_logo_top') && !get_option('unspoken_logo_text') ) echo 'offset' ?>">
<a href="<?php bloginfo( 'url' ); ?>">
<?php
if ( get_option('unspoken_logo_text') ) {
echo get_option('unspoken_logo_text');
} elseif ( get_option('unspoken_logo_top') ) {
if ( function_exists('unspoken_get_logo') ) echo unspoken_get_logo(get_option('unspoken_logo_top'));
} else {
?>
<?php
if (get_option('unspoken_skin') && get_option('unspoken_skin') != 'default') {
echo '<span style="background: url(' . get_bloginfo('template_url') . '/skins/unspoken-' . get_option('unspoken_skin') . '/images/logo-header.png) 0 0 no-repeat;"></span>';
} else {
echo '<span style="background: url(' . get_bloginfo('template_url') . '/images/logo-header.png) 0 0 no-repeat;"></span>';
}
?>
<?php } ?>
</a>
</div>
]]>I’ve updated the SEO plugin today and I noticed the plugin adds an extra blog title to my site at the top of the page in a regular Times. I deactivated the plugin and the title was gone.
Please see my screenshot as my page isn’t online yet.
I’m using the Thematic Framework to develop my site.
https://www.ads-software.com/extend/plugins/wordpress-seo/
]]>I’m using an image in order to display the blog title. So because there is no clickable text in the header which redirects you to the blog mainpage, I’d like to make the whole header-image clickable.
I was adding this to my header.php, but appearantly it doesn’t work:
<div id="headerimg"onclick="location.href='https://www.mydomain.com';" style="cursor: pointer;" title="Home"></div>
my header.php looks like this now:
<!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'); ?>" />
<meta name="verify-v1" content="s/PrC06nimhhimtebXxjLQet/RwXNUuuK+rkz2j0VuQ=" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/ie-styles.css" />
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<div id="wrapper"> <!-- wrapper starts -->
<div id="header"> <!-- header starts -->
<div id="headerimg"onclick="location.href='https://www.mydomain.com';" style="cursor: pointer;" title="Home"></div>
</div> <!-- header ends -->
What am I missing? Anyone got an idea?
Greetings
]]>I use wordpress to run a niche website i made, i use pages not posts for various reasons. My left menu prints out all pages, using wp_list_pages(), i specify a variable title_li in that function call. As follows:
<?php wp_list_pages(‘title_li=<h2>Color Blindness</h2>’ ); ?>
This of course outputs correctly, as follows in the html source output:
<div id=”sidebar_left”>
<li class=”pagenav”><h2>Color Blindness</h2>
<?php wp_list_pages(“title_li=<h2>” . bloginfo(‘name’) . “</h2>” ); ?>
This outputs the blog name BEFORE the source its enclosed in:
<div id=”sidebar_left”>
Color Blindness<li class=”pagenav”><h2></h2>
Can anyone explain why, and how to get the latter to output its return value where it should? I want to recycle the theme on a new site and like to fix any manual things in the theme like this as i find/realise:)
Charles
]]>