How to Install the Twitter Retweet Plugin on a Headway Theme Site

User “dagi” on the support forums wanted to know how to install the Twitter Retweet wordpress plugin on his headway site. The plugin calls for a line of code to be added to the “single.php” file. However, headway isn’t structured like a regular theme, so editing files is complicated and often messy.

Luckily, user Scott figured it out with the use of this hook function. Add the following code to your custom_functions.php file:

function headway_twitterReTweet(){
if(function_exists('twitterReTweet')) { echo twitterReTweet(); }
}
add_action('headway_above_post_single', 'headway_twitterReTweet', 1);

It’s as simple as that. Thanks Scott!

Any Questions?

What questions do you have about using the Twitter Retweet plugin with Headway? Share your thoughts and opinions below!

You just finished reading How to Install the Twitter Retweet Plugin on a Headway Theme Site. Consider leaving a comment. Is the content out of date?
Let us know so we can update it.

http://headwayhub.com/2010/06/03/how-install-twitter-retweet-plugin-on-headway-theme-site/

Hey You! What's Powering Your Website?

No Need For WordPress Developers! Drag & Drop With Headway

Headway is a feature-rich, flexible and user-friendly WordPress theme which nearly eliminates the need for coding, and empowers average WordPress users to create unique, great looking WordPress sites.

Learn More About Headway Themes

Post comment as twitter logo facebook logo
Sort: Newest | Oldest

Hello - Corey, I copied and paste the code and did not get the expected result. Simply, nothing showed up on the site. Am I missing something?

If you're using the 2.0 beta then the hook "below_post_single" is depreciated. I don't know why it wouldn't work on 1.6.6 or lower, though.

Hi Corey, I am trying to install this plugin with the code in the customs_functions.php file and I am getting this message:

The plugin does not have a valid header.

What do you suggest?

Also, for the same site (http://www.durangospa.com) I added the code for the Facebook Like Plugin and changed the hook to place below the title of each post- there is a big space between the Like button and the start of the post content- any ideas on how to lessen this space?

Thanks!!

Vanessa