Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2172088
PenNews: New functions added to functions.php in child theme don't work
Closed

Comments

  •  1
    ICEknigh7 started the conversation

    I had a couple of functions added to Wordpress' default theme which automatically duplicated the contents of a post when adding a new language, but they don't work anymore when appending them to PenNews child theme.

    They're the same ones I had in TwentyFifteen's child theme, appended now to the functions.php file in PenNews' child theme.

    What could be happening?

  •  501
    Penci replied

    Hi,

    I download TwentyFifteen theme on  your site and don't find "default_content" and "default_title" filter on TwentyFifteen theme.  https://prnt.sc/peg107 https://prnt.sc/peg182

    It appears that two filter not come from TwentyFifteen theme.

    Please tell me about the issue and tell me about position two filter on your site.

    Best Regards,

    PenciDesign

  •  1
    ICEknigh7 replied

    The new functions were added to "twentyfifteen-child".

  •  501
    Penci replied

    Hi,

    Yeah, i know. I checked on child theme of pennews and twentyfifteen-child. And i saw you added function twentyfifteen-child to child theme of pennews.

    You code  on twentyfifteen-child have  "default_content" and "default_title" hook 

    But i can't find  "default_content" and "default_title" hook  on TwentyFifteen theme.

    Do you know i want say about filter ?

    add_filter( 'default_content', 'jb_editor_content' );
    add_filter( 'default_title', 'jb_editor_title' );

    Best Regards,

    PenciDesign

  • quirogamonte replied

    Maybe they are in the Polylang plugin?

  •  1
    ICEknigh7 replied

    Nevermind, I was just using the parent theme when I opened this ticket. They work now just like the new CSS.

    This can be closed.