WordPress.org

Forums

Rumput Hijau
[resolved] removing homepage breadcrumb (5 posts)

  1. rayvision
    Member
    Posted 2 years ago #

    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,

  2. Satrya
    Member
    Theme Author

    Posted 2 years ago #

    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' );
  3. rayvision
    Member
    Posted 1 year ago #

    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,

  4. Satrya
    Member
    Theme Author

    Posted 1 year ago #

    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' );
    }
  5. Satrya
    Member
    Theme Author

    Posted 1 year ago #

    Double post. Sorry.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic