My website at [login to view URL] uses the following code to display breadcrumbs
// Build Breadcrumbs
function the_crumbs() {
if (!is_home()) {
echo '<a href="';
echo get_option('home');
echo '">';
echo 'Home'; // Home Link Text, change this to meet your needs
echo "</a> > ";
if (is_category() || is_single()) {
the_category(' > ','&title_li=');
if (is_single()) {
echo " > ";
the_title();
}
} elseif (is_page()) {
echo the_title();
}}}
// Show Breadcrumbs
function show_crumbs() { ?>
<div class="popcam">
<div class="left"><?php the_crumbs(); ?></div>
<div class="right"><a href="[login to view URL]" title="Sitemap">Sitemap</a></div>
</div>
<?php }
add_action('thesis_hook_after_header','show_crumbs');
This code is located in the [login to view URL] of the theme Thesis.
What I need:
As written the code does not display breadcrumbs when the index/home page is being displayed, however, I don't use the index page, I use the following code to display an individual post as the index page...
define( 'HOME_POST_ID', 4 );
add_action('thesis_hook_after_post', 'stuff_after_posts4');
function wdbj_pre_get_posts( &$wp_query ) {
global $thesis_pages;
if ( defined( 'HOME_POST_ID' ) && HOME_POST_ID ) {
if ( $wp_query->is_home ) {
$wp_query->set( 'p', HOME_POST_ID );
$wp_query->is_home = false;
$wp_query->is_single = true;
$wp_query->is_singular = true;
if ( $title = get_post_meta( HOME_POST_ID, 'thesis_title', true ) )
$thesis_pages->home['head']['title'] = trim( wptexturize( strip_tags( stripslashes( $title ) ) ) );
if ( $keywords = get_post_meta( HOME_POST_ID, 'thesis_keywords', true ) )
$thesis_pages->home['head']['meta']['keywords'] = $keywords;
if ( $description = get_post_meta( HOME_POST_ID, 'thesis_description', true ) )
$thesis_pages->home['head']['meta']['description'] = strip_tags( stripslashes( $description ) );
}
}
}
add_action( 'pre_get_posts', 'wdbj_pre_get_posts' );
Which means breadcrumbs are being displayed on the home page.
I need the breadcrumb code altered so they do not show on home page which is really HOME_POST_ID', 4.
Instead:
I would like the following Google search box to display (in breadcrumb area) on the home page only.
<form action="[login to view URL]" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-9183804456251548:gilccu-csq2" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="[login to view URL];lang=en"></script>
Last Item:
Breadcrumbs displays the category as a link - I want the category link removed (category will still display but it will not be a link)
Dear sir / Madam,
Thanks for your job posting. I am interested to do your job . please let me know if you have any question / query ….
I am ready to start your job .if you would like to see my work example I will show you .
Waiting for your reply …
Best of luck
Thanks