Home Forums Free Themes Education Hub How to remove "Archive for " in breadcrumb

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #36045
    andyzhou
    Participant

    I set category “News” to primary menu, but I found the breadcrumb shows likes this “Archive for News”,how can I remove the words “Archive for ” from the breadcrumb?

    #37065
    andyzhou
    Participant

    Nobody replies me.

    #37075
    wensolutions
    Keymaster

    Hello @andyzhou,

    We apologize for the late reply .

    Now to remove the “Archive for” you have to go through the child theme approach .

    Child theme references:
    https://codex.wordpress.org/Child_Themes

    You can also create the child theme using the plugins. Below is the link to one of them.

    https://wordpress.org/plugins/wp-child-theme-generator/

    After creating the child theme in your child’s themes functions.php file paste below given code.
    https://gist.github.com/anonymous/f0fe5ef45f6d15717f3088af2e6ffb38

    Hope this helps.

    If you have any confusion further, please let us know.

    Best Regards!!

    #65264
    evollo
    Participant

    I tried the github code you referenced above. It returned a “fatal error” on line 140, which is the last line.

    #65289
    wensolutions
    Keymaster

    Hello @andyzhou,

    While we have tested the code on our side, the code is working correctly.

    Please provide us the details of the error ( Complete Error notice ) and the codes in your child theme’s functions.php file so that we can check the issue and provide some precise fix.

    Best Regards !!

    #65311
    evollo
    Participant

    If I add the code code from github directly into php functions, the code works. However, if I try to add the cost with the Snippets plugin, I get this error:

    The code snippet you are trying to save produced a fatal error on line 140:

    Cannot redeclare education_hub_simple_breadcrumb() (previously declared in /home/healt933/public_html/freddykaltenborn.com/wp-content/themes/education-hub/inc/helper/common.php:52)

    #65353
    wensolutions
    Keymaster

    Hello @andyzhou,

    The fix we have provided via child theme approach requires the code to be placed in the Child theme’s functions.php file.

    As the quick customization approach is working due to the function_exists() wrapper of the parent theme, and the child theme’s functions are loaded before parent’s functions. Also, we cannot control the order of functions while using custom code plugin, the issue seems to be seen on your website.

    Our suggestion would be to use the code through the child theme’s functions.php file.

    If you have any confusions further, please feel free to write back to us.

    Best Regards !!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.