Tagged: breadcrumb
hello,
I want to remove this part from all pages:
<h1 class=’main-title entry-title’>…</h1>
I am looking for a clean php solution and not for a css “display:none!important” solution which only “hides” the element.
we just want to keep the breadcrumb without the part above.
can you provide us with a code snipet?
kind regards
daniel
Hey damursch!
Open up /enfold/functions-enfold.php and find line 278 which should look like this.
'html' => "<div class='{class} title_container'><div class='container'><{heading} class='main-title entry-title'>{title}</{heading}>{additions}</div></div>",
And change it to this.
'html' => "<div class='{class} title_container'><div class='container'>{additions}</div></div>",
Cheers!
Elliott
hello elliott,
thank you for your quick reply. I thought it would be possible to add a custom php code in the child theme functions.php
what happens with my “custom” changes of the core file if the theme is getting updated in future? I think my changes will get lost…
kind regards
daniel
Hey!
Yes, they will be overwritten but you can use a child theme to avoid that. For more information, please see – http://kriesi.at/documentation/enfold/using-a-child-theme/
Regards,
Yigit
hello yigit,
I already use the childtheme but your colleague told me to change the core files /enfold/functions-enfold.php
so can you give me the right instructions?
Hey!
The functions-enfold.php is not required in the child theme folder and WordPress will also not load this file from the child theme folder. If you want to customize some code of the functions-enfold.php file just copy the function into the child theme functions.php and modify the code there.
Regards,
Yigit