I have a custom menu item, with a URL.
I would like the 2nd language menu to direct to a different URL.
I have tried to do this:
1. Open Falang menu item editor on the custom menu item
2. Under Parameters, edit the URL
3. Save
4. Re-open the menu item editor.
Unexpected: The URL has changed back to the URL from the 1st-language menu item.
It seems that I can’t store a separate URL for each language in custom menu items.
Specific applications are:
– Custom menu item pointing to an anchor in a page, for example
https://foo.com/page#anchor — https://foo.com/fr/page#anchor
– Custom menu item pointing to the appropriate language on another site
https://foo.ticketsolve.com — https://foo.ticketsolve.com?lang=fr
Thanks!
Alan
I’ve had PayPal generate code for a “View Cart” button, which looks like this:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----(deleted for post)==-----END PKCS7-----">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_viewcart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
On my main menu bar I have a “Shopping Cart” icon, and what I would like to do is to have the user click on that, and it would use the above code.
So, that is question 1… I believe I can just remove the “input type=image” entry when I attach it.
The custom HTML widgets expect to see a URL, so I’m not sure if I can attach the “<form>” to it.
Any ideas greatly appreciated! (and sorry if this is a stupid question).
Thanks
]]>I’m trying to add a link to the news page within the top menu (in front of Client Upload, and Search). I’ve got the text there, but it appears to be sitting up higher than the other two.
I’m not sure what i can do to fix it:
www.gandrcustomcabs.com is the site.
thanks,
Stacie
I’m trying to add a menu item that would automatically update new contributors as we add them?
I’ve been looking everywhere and cant seem to figure out a way to do it.
Thanks so much!
]]>Is it actually gone? If so, why? And if not, where can I find it?
Thanks
Vincent
]]>I know this can be done using the following code:
add_filter('wp_nav_menu_items', 'add_search_to_nav', 10, 2);
function add_search_to_nav($items, $args)
{
$items .= '<li>SEARCH</li>';
return $items;
}
Where
<li>SEARCH</li>
can be replaced by my code.
<div>Follow Us:</div>
<div style="float: left;">
<a href="facebookURL"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" /></a>
<a href="twitterURL"><img src="<?php bloginfo('template_directory'); ?>/images/twitter.png" /></a>
<a href="rssURL"><img src="<?php bloginfo('template_directory'); ?>/images/rss.png" /></a>
</div>
<div style="clear: both;">
</div>
The tricky bit with my situation is that it is a multisite environment and I want the custom item to be different on each child site. ie: facebookURL, twitterURL, rssURL
Is it possible to have a variable for each of these values that can be configured from the Network Admin / Sites / child site / Settings area.
This way I can edit the template to include the above function & code in the functions.php and then I can configure the individual URL’s for each child site, therefore customising the menu for each child site of the Multi-Site network.
Here is the site in question.
https://www.my-gopro.com
Thanks in advance
]]>Thanks in advance!
]]>I have a WordPress menu on my website. For one of the menu items, I’d like to add some custom html (a “rel” tag so that I can add fancybox functionality). Is there a way to inject that custom html into that particular menu item? I’m familiar with adding css classes, but not sure how to add custom html to that link.
Thanks!
]]>