How to customize widget IDs (#) for creating a menu with anchors?

Home Forums FoodHunt Free How to customize widget IDs (#) for creating a menu with anchors?

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Ashish 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1372085

    pandartt.contato
    Participant

    Hello,

    On FoodHunt Free, each widget has a unique ID (#foodhunt_service_widget-2, #foodhunt_service_widget-3 and so on).

    I need to create a menu with anchors for each widget session. However, I don’t want the link to be “#foodhunt_service_widget-2”, but “contact” and so on.

    I’m wondering if it’s possible to create an alias for these widget IDs, so I can use the alias on the menu links and the page will still scroll to the widget areas. The main purpose is to show beautiful anchor links on the menu, not letting the user know that the section is called “foodhunt_service_widget-2” and so on.

    Is it possible to achieve that?

    How can I manage these “weird” widget IDs?

    Thanks for the theme!

    Giovanna

    #1372122

    Ashish
    Moderator

    Hi @pandartt.contato
    I think there’re plugins for adding CSS class and id in a widget. One I found is Widget CSS Classes. You can try searching others also in WordPress plugin repository.

    Regards,
    ThemeGrill Support Team.

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

You must be logged in to reply to this topic.