New Landing How can we help? Themeforest Theme Support Neighborhood Custom Header Menu Item

Viewing 8 posts - 1 through 8 (of 8 total)
  • #30033
    uaesthetics
    Member
    Post count: 15

    Hi,

    I would like to add a currency dropdown via shortcode to the header-menu(css class) which is positioned to the right of the logo with the items – Sign Out, Subscribe and My Account. How can I do this?

    Regards.

    #30511
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Open up \wp-content\themes\neighborhood\includes\swift-framework\sf-content-display\sf-header.php that is the file responsive for the header, so go to #604 to #616 you see some li elements are added, so after that add your code for currency dropdown.

    Let me know, what you got.

    Thanks,
    laranz.

    #30581
    uaesthetics
    Member
    Post count: 15

    Hi,

    If found the code you directed me to. I cannot seem to get the currency link to appear. The currency widget work by creating a Page and adding 1 line of shortcode to the page. I added that page to the Main Menu via the WordPress menu editor and it works fine. But I do not want in the main menu.

    All I want to do is add the line below to appear next to the translations dropdown.

    <a href="http://(just hiding my url)/select-currency/">[woocommerce_saved_currency]</a>

    Regards

    #30628
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Try this. Did you find/see the translation code in the file I gave? if you found below put the code you gave.

    <a href="http://(just hiding my url)/select-currency/"> <?php echo do_shortcode( [woocommerce_saved_currency] ) ?> </a>

    Let me know, what you got.

    Thanks,
    laranz.

    #30733
    uaesthetics
    Member
    Post count: 15

    Hi,

    If I do this:

    $aux_links_output .= '<li><a href="http://myurl/select-currency/">'.<?php echo do_shortcode([woocommerce_saved_currency])?>.'</a></li>'. "\n";

    I get the following error.
    Parse error: syntax error, unexpected ‘<‘

    If I delete the shortcode bit and type in some random text in the anchor tag the link appears on the homepage. But I need to have it with the shortcode. I tried the .do_shorcode($woocommerce_saved_currency) that is used for other shortcode effects that doesn’t work either.

    Regards

    #31224
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Put something like this..

    $aux_links_output .= '<a href="http://example.com/select-currency/">' . do_shortcode( [woocommerce_saved_currency] ). '</a>';

    Let me know, what you got.

    Thanks,
    laranz.

    #59660
    Fernando_
    Member
    Post count: 50

    Hi guys,

    Just wanted to know how I can do the same, if I have to download a plugin before adding the code. Anybody help?

    #59772
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Everything is defined in previous reply so please read reply one by one . Hope It will work 100% .
    With Best Regards
    Swift Ideas

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register