Find Jobs
Hire Freelancers

Breadcrums in Wordpress

$30-250 USD

Completed
Posted over 13 years ago

$30-250 USD

Paid on delivery
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)
Project ID: 867316

About the project

3 proposals
Remote project
Active 13 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello! Please check your PMB.
$30 USD in 0 day
5.0 (157 reviews)
6.8
6.8
3 freelancers are bidding on average $30 USD for this job
User Avatar
why you don't use plug-in for this? it is very cute :)
$30 USD in 1 day
4.9 (34 reviews)
5.5
5.5
User Avatar
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
$30 USD in 1 day
4.5 (12 reviews)
4.3
4.3

About the client

Flag of UNITED STATES
Eugene, United States
5.0
36
Payment method verified
Member since Apr 4, 2008

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.