Home › Forums › Free Themes › Education Hub › How to remove "Archive for " in breadcrumb
- This topic has 6 replies, 3 voices, and was last updated 6 years, 10 months ago by wensolutions.
-
AuthorPosts
-
March 19, 2017 at 1:02 am #36045andyzhouParticipant
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?
March 28, 2017 at 1:06 am #37065andyzhouParticipantNobody replies me.
March 28, 2017 at 1:58 am #37075wensolutionsKeymasterHello @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_ThemesYou 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/f0fe5ef45f6d15717f3088af2e6ffb38Hope this helps.
If you have any confusion further, please let us know.
Best Regards!!
February 5, 2018 at 6:34 pm #65264evolloParticipantI tried the github code you referenced above. It returned a “fatal error” on line 140, which is the last line.
February 6, 2018 at 1:37 am #65289wensolutionsKeymasterHello @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 !!
February 6, 2018 at 12:06 pm #65311evolloParticipantIf 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)
February 6, 2018 at 11:05 pm #65353wensolutionsKeymasterHello @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 !!
-
AuthorPosts
- You must be logged in to reply to this topic.