• Resolved FeliceAntonio

    (@antonio_09)


    Hello.
    I should add a function in function.php child theme file, to add code after the content (title and excerpt posts) in category page.
    What name function could I have work?
    Thanks in advance.

    • This topic was modified 3 years, 10 months ago by FeliceAntonio. Reason: correction
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter FeliceAntonio

    (@antonio_09)

    Well, I found the code in this page and I changed generate_after_entry_header with this:

    add_action( 'generate_after_main_content', function() {
        if ( is_category() ) {
            echo 'what you want';
        }
    } );

    And “what you want” it only appears in category page -:)
    Great, and thanks to more, I solved it again with your work -:)

    • This reply was modified 3 years, 10 months ago by FeliceAntonio. Reason: correction
    • This reply was modified 3 years, 10 months ago by FeliceAntonio. Reason: correction my spaghetti language
    Theme Author Tom

    (@edge22)

    Glad you found a solution! Thanks for sharing it here 🙂

    Thread Starter FeliceAntonio

    (@antonio_09)

    My duty -:)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add a code in category page’ is closed to new replies.