[Support request] Can’t specify which author archive page will recieve custom header

Home Forums Support [Support request] Can’t specify which author archive page will recieve custom header

Home Forums Support Can’t specify which author archive page will recieve custom header

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1340623
    APDWEB MARKETING DIGITAL

    Hello, GP Friends!

    With the elements feature, we are customing the Author’s pages with the Header element. Althought, by selecting the rules, we can’t specify which author we want that custom header. It’ll go to every author within the blog. Here is the struggle: https://i.imgur.com/kLukFsZ.png

    I can’t put thisng like {{title}} or {{description}} becouse our custom layout goes the autor’s picture. Something like this: https://i.imgur.com/xyc1XrE.png

    Hope you guys can help us.

    Best regards!

    #1340721
    Leo
    Staff
    Customer Support
    #1361905
    APDWEB MARKETING DIGITAL

    Hello, Leo! Thanks for the answere.

    I’m stuck on the part that I have to insert whoch author I want the header to show on. In the documentation’s exemple, your author is just ‘Tom’. But my author has 3 names that stands for: “Priscila Gontijo Correa”.

    I’m not sure if this isn’t working becouse of the author’s name or otyher thing that i’m missing. Anyways, i’m showing to you what i’m doing:https://i.imgur.com/wpPmouY.png

    What am I missing?

    Thanks!

    #1362450
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    is_author() can take the user ID, username or nicename: https://developer.wordpress.org/reference/functions/is_author/

    #1397669
    APDWEB MARKETING DIGITAL

    Hi, Tom.

    I figured out which is the User ID of my author, but the filter isn’t working… Is there anything else I should know about this function filter? Like the numbers 10 and 2 in the return…

    Thanks!

    #1397936
    Tom
    Lead Developer
    Lead Developer

    The 10 should be the ID of the Element you’re targeting.

    When editing the Element, its ID should display in the URL of the page.

    Let me know 🙂

    #1398591
    APDWEB MARKETING DIGITAL

    Hey, Tom. Thanks for the answere

    I can’t make it work, though… Please, can you tell me if it is right?

    The Element ID in the URL: https://i.imgur.com/Lj5EADu.png

    The filter: https://i.imgur.com/51nAUJT.png

    Thanks!

    #1399191
    Tom
    Lead Developer
    Lead Developer

    Looks good, although you can keep the second 10 as it was.

    Can you link me to the author page where this hook is supposed to show?

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