• Hello,

    In my custom theme, I have the option to add Custom Links into my navigation.

    I’d like to know how I can modify the “href” of each with a prefix, in my theme (without modifying the core wordpress).

    So for example if I create a custom link with the url as “John”

    It would output as this
    href=”www.ads-software.com/john”

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Go to Appearances > Menus in the dashboard and create a custom menu there. You should then be able to specify the URLs.

    Thread Starter Senyaj

    (@senyaj)

    Hello,

    Thank you for your response, I think you have misunderstood me.

    When I create a menu through my dashboard I want each to link have a prefix.

    So If I create a custom menu and specify “John” as the URL.

    On my navigation it will be displayed as:

    a href=”www.ads-software.com/john”>JOHN</a

    Instead of:

    a href=”john”>JOHN</a

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The confusing part is using ‘www.ads-software.com’ as an example.
    What specifically do you want to have prefixed?

    Thread Starter Senyaj

    (@senyaj)

    Hi,

    I thought that example would make it easier.

    Essentially, I would like the url to be href=”#filter=.John”

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What happens if you use the Custom Link URL as;

    /#filter=.John

    ?

    just use #john in href instead of john because if you specify url=john it will take the root url of your blog (example.com) and add the john after a trailing slash (example.com/john)

    Peace,
    LastForOne

    Thread Starter Senyaj

    (@senyaj)

    Hello,

    This is for a custom jQuery script.

    Thanks

    Thread Starter Senyaj

    (@senyaj)

    Anyone know?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom Links in menu modification’ is closed to new replies.