• Resolved rayvision

    (@rayvision)


    I have a client that is using the Rumput Hijau theme in their website. They want to remove the breadcrumb from the homepage. Can you direct me as to where to remove the breadcrumb for this single page.

    Thank you,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Ga Satrya

    (@satrya)

    Please create a child theme, then in the functions.php add the code below

    functions remove_breadcrumbs() {
    	remove_action( 'rumputhijau_header_after', 'rumputhijau_breadcrumbs_function' );
    }
    add_action( 'init', 'remove_breadcrumbs' );
    Thread Starter rayvision

    (@rayvision)

    This works to remove the breadcrumbs from all of the pages. Is there a code to only remove the breadcrumb from the homepage, but leave them on all of the other pages.

    Thank you,

    Theme Author Ga Satrya

    (@satrya)

    Hi,
    I really sorry about the delay, please try it

    functions remove_breadcrumbs() {
    	remove_action( 'rumputhijau_header_after', 'rumputhijau_breadcrumbs_function' );
    }
    if ( is_home() ) {
    add_action( 'init', 'remove_breadcrumbs' );
    }
    Theme Author Ga Satrya

    (@satrya)

    Double post. Sorry.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘removing homepage breadcrumb’ is closed to new replies.