G icon and link in the footer?
Hi wonderful WP coders!
I’d like to add a 4th social media icon to my footer, for Google+.
I’ve hacked into the spun footer php enough to get a link (href) to the page, but it’s not the optimal solution.
Here is my site: memesounds.com
In the “Customize” portion of my WP controls, I can easily add Facebook, Twitter and Tumblr links (I don’t know if this is because I have Jetpack installed and connected or if it’s default WP) and the pretty grey circles for each of those show up in the lower right of my footer.
What I’ve done is crudely added this to my footer.php :
<span class="screen-reader-text"><?php esc_html_e( 'Tumblr', 'spun' ); ?></span> </a> <a href="https://plus.google.com/+Memesounds" rel="publisher">G+</a> <?php endif; ?> <?php if ( $spun_googleplus ) : ?> <a href="<?php echo esc_url( $spun_googleplus ); ?>" class="googleplus-link" data-icon="<code></code>"> <span class="screen-reader-text"><?php esc_html_e( 'G+', 'spun' ); ?></span> </a> <?php endif; ?>
I was hoping I might be creating variables that could be controlled via “Customize” and maybe linked somewhere in “sharing” or “publishing” … I even thought I might have found the right data-icon for a Google+ logo
…but it’s probably more complicated than that and I need to add some more stuff to other .php files?
In any case, I now have the plain text G+ href anchor… and I’d like to make it a nice circle logo like the other three, if that is possible.
ps – couldn’t find this in any of the posts using the word “footer” in the title
I was hoping I might be creating variables that could be controlled via “Customize” and maybe linked somewhere in “sharing” or “publishing”
To clarify, this is regarding the Jetpack plugin?
I wish I knew… when i go to Customize, I can easily add Facebook, Twitter and Tumblr links that show up in my footer and look perfectly integrated into Spun and I see the same three listed in the Spun footer.
So I’m not sure if this has anything to do with Jetpack or not. Does everyone who has this installed get those three configurable? How can we add more?
Thanks for the quick reply 🙂
Can you try deactivating all plugins to explore which, if any, could be responsible for your social icons in the footer?
I don’t see anything like that on the theme’s demo site http://spun-demo.calobeedoodles.com/
here’s what i am seeing for the other three:
the drop downs each only have one selection — and they just work “out of the box” so to speak.
so, i must have configured them somewhere while using a previous theme.
using the previous theme, i actually recall having more …. google+ was one of them in my footer, so, i’m guessing that spun has actually limited the number of links i can use … and that’s why i tried to add what i did in the spun footer.
using the previous theme, i actually recall having more …. google+ was one of them in my footer, so, i’m guessing that spun has actually limited the number of links i can use
That strengthens the smell that you’re using a plugin for this.
sure i can try deactivating plugins … i just need to check to make sure i don’t lose any settings after deactivating and reactivating — it will be too much work to reconfigure to get this little “nice to have” working
thanks for the quick replies
this is definitely related to jetpack.
i didn’t realize plugins could modify the php of your theme
I found these at the top of my spun footer.php (not my child theme)
$spun_facebook = get_theme_mod( ‘jetpack-facebook’ );
$spun_twitter = get_theme_mod( ‘jetpack-twitter’ );
$spun_tumblr = get_theme_mod( ‘jetpack-tumblr’ );
so, i don’t quite know how to get these mods working, although i could try to repurpose the “linkedin” mod for google plus … i don’t know how well it would work….. i’d need to look for linkedin all over all the php files i guess. sounds like it’s probably a little above my current coding level, unless there’s an easy couple of changes i could make.
- The topic ‘G icon and link in the footer?’ is closed to new replies.