• How to override the disable hide breadcrumbs on front page?

    	// Return if breadcrumbs are disabled.
    	if ( ! oceanwp_has_breadcrumbs()
    		|| is_front_page() ) {
    		return;
    	}
    

    I need to show the breadcrumbs on my sub-site front page. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    are you using multisite and do you want to only disable the breadcrumb from the supersite front page? Please share your website URL also.

    Thread Starter petedan

    (@petedan)

    Yes, I’m using multisite, and I only wish for the breadcrumbs to be disabled on the front page of the main site. I wish for breadcrumbs to show on the front page of sub-sites only.

    My site is not yet live, only localhost.

    Thank you.

    Hi,

    Sorry but without seeing the site, I’m unable to inspect and write the correct code.

    Thread Starter petedan

    (@petedan)

    Seriously? How does that make a difference?

    All I’m asking is for the code to override the if statement in the oceanwp -> inc -> breadcrumbs.php file shown in the first post, so instead it’s something like the below code.

    Beginning to feel like you just couldn’t be bothered with most of the support questions here. Not the first time you’ve dismissed a simple support question.

    	// Return if breadcrumbs are disabled.
    	if ( ! oceanwp_has_breadcrumbs()
    		|| is_main_site() && is_front_page() ) {
    		return;
    	}
    
    Thread Starter petedan

    (@petedan)

    Wonderful support here!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display breadcrumbs on front page’ is closed to new replies.