Anydog,
Thanks for taking the time to spell this out. Very clear and very helpful!
Scott
Thread Starter
sdix
(@sdix)
I don’t know a ton about programming, so bear with me…
It looks like there are four variables in place that do the work of delivering the link to Add to Any:
$linkname = get_the_title($post->ID);
$linkname_enc = rawurlencode( $linkname );
$linkurl = get_permalink($post->ID);
$linkurl_enc = rawurlencode( $linkurl );
Can some code slipped in to offer WordPress an option to use a different set of variables that does something like this (ignore syntax, pls):
if is_front_page()
$linkname = bloginfo('name'); (or hardcodedtext)
$linkname_enc = rawurlencode( $linkname );
$linkurl = bloginfo('url'); or hardcoded link)
$linkurl_enc = rawurlencode( $linkurl );
else
... continue as normal.
Thanks!