Viewing 8 replies - 1 through 8 (of 8 total)
  • acub

    (@acub)

    There are two options: you either altered the Customizr files, either use a filter on your titles that outputs the content twice. Please save the contents of your child theme’s functions.php as functions.txt anywhere on your server (using UTF8 encoding) and link it here so I can have a look at it).

    Or make a phpfiddle for it: http://phpfiddle.org/

    Thread Starter rise14

    (@rise14)

    Hi,
    Here’s a link to the child theme’s functions.php code:

    http://phpfiddle.org/main/code/6rs-v5d

    Thanks

    acub

    (@acub)

    functions.php of your child theme should only contain your own functions. Nothing from the parent functions.php unless you want to replace it with your own modified version. Right now I can’t tell if they’re modified or not, I have to check. But if you just copied functions.php from parent and added new functions to it, you should try to put your custom functions in a clean php file, not in a copy of parent functions.php: just make sure you have

    <?php

    on first line.

    Thread Starter rise14

    (@rise14)

    Here’s the corrected child theme functions.php with only my custom code:

    http://phpfiddle.org/main/code/xy7-e50

    acub

    (@acub)

    There’s nothing in there that causes your problem. But do remove line 18. It’s safer not to exit php mode before eof of pure php files.

    Getting back to the problem: have you copied any other files from Customizr to your child theme and made mods to them? If so, which ones?

    My wild guess is you have copied “/parts/class-content-post.php” from parent to child and messed it up a bit. You should take a look at the original and try to make your mods again. Before you do that, just to check if that’s the cause, rename the one in child theme, so the one in the parent theme gets loaded instead.

    Thread Starter rise14

    (@rise14)

    I was able to solve the problem by deleting the /parts folder in the child theme. I must have changed some code in there at some point but it didn’t cause any problems when I got rid of it.

    RESOLVED

    acub

    (@acub)

    Please don’t forget to mark it as such. Thank you.

    Thread Starter rise14

    (@rise14)

    Sorry, thought I had marked it. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Duplicate Post Titles’ is closed to new replies.