Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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
    daniel

    #357183

    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

    #357499

    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

    #357537

    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

    #357596

    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?

    #357601

    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

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