Support

Account

Home Forums ACF PRO Anchor in component

Helping

Anchor in component

  • Hi community,

    We have an ACF pro WP Site builded by a developer. There is a specific type of content we can add to our site and within that type we can add different type of components.
    Some of the components haves an button and link field. I like to link this to another component that is displayed at the page.
    Unfortunately I don’t see an option to add an anchor to those components.

    What I found was a solution for blocks at https://support.advancedcustomfields.com/forums/topic/anchor-in-wp-blocks/ . But I am looking for something similar for the components.

    Is there a possibility for this? If so, which file(s) should I need to edit to make this happen?

    Thanks for helping.

  • I do not know how your site was built. I’m guessing that the developer used flexible content fields for the “components”. If the theme templates do not already add id attributes to the HTML then you would need to alter the templates to add this and quite possibly add some type of field to each of the flexible content layouts to allow entering or allowing unique ID values for each layout.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.