Tagged: breadcrumb
-
AuthorPosts
-
November 24, 2014 at 3:49 pm #356880
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
danielNovember 24, 2014 at 10:45 pm #357183Hey 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!
ElliottNovember 25, 2014 at 1:28 pm #357499hello 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
danielNovember 25, 2014 at 3:02 pm #357537Hey!
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,
YigitNovember 25, 2014 at 4:06 pm #357596hello 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?
November 25, 2014 at 4:11 pm #357601Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.
