Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    The Twitter follow button page you’re looking at is only meant for sites hosted over at WordPress.com – those shortcodes don’t work on a self-hosted site as far as I know. ??

    Where did you add that search box, did you add it to your child theme’s template files? If so, you could add a Twitter button there as well.

    Thread Starter lkabor

    (@lkabor)

    Oh dear, I can’t remember now how I added the search box – it was so long ago. It was probably through the child them with your help, but I can’t recall. Any suggestions about how to add the Twitter button there?

    Moderator Kathryn Presner

    (@zoonini)

    I’d suggest you look through your child theme and locate the file where you made that change. My guess is that it would be somewhere in header.php.

    You’ll need to hard-code in a Twitter button, though, since as I mentioned the technique you found on the WordPress.com support site won’t work on self-hosted sites – it’s a shortcode for WordPress.com-hosted sites only.

    You’ll need to find a Twitter button graphic you like, upload it to your site, and then manually add a link around it with HTML. As an extremely rough example of the code:

    <a href="https://twitter.com/youraccount"><img src="https://your-image-path/your-image.png /></a>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add Twitter follow button at top of site’ is closed to new replies.