Link to home
Create AccountLog in
Avatar of rtod2
rtod2Flag for United States of America

asked on

Move button

I am relatively new to the development end of Wordpress with http://weaverplus.info/ themes.  I would like to move the email button inline with the Tweet and Like buttons.  I need to know what specific steps to take in order to accomplish this.  The page with the button that needs to be moved is www.frugalmule.com/sandbox and the code for the button is here...
<script type="text/javascript">// <![CDATA[
function getTitle(){
var subOFEmail=document.title;
var bodyOfEmail= window.location.href;
window.location.href='mailto:'+""+'?subject='+subOFEmail+'&body='+bodyOfEmail;
}
// ]]></script>
<input type="button" value="Email" title="Pass It On" style="font-size:small; background-image: url(&quot;http://www.huronsocial.com/_img/icons/email.gif&quot;); background-repeat: no-repeat; background-position: 4px center; padding-left: 24px; border: 1px solid rgb(176, 176, 176); border-radius: 3px;" onclick="javascript:getTitle();">

Open in new window


Once moved, the left-to-right order should be.
1. Email Button
2. Like Button
3. Tweet Button
Avatar of Sudaraka Wijesinghe
Sudaraka Wijesinghe
Flag of Sri Lanka image

For this you simply need to move the HTML code of the email button and the script to the area where other buttons are.
Please you are looking for is a DIV tag with a class "hjawidget" (<div class="hjawidget">). Please your button code as the first thing inside that DIV tag.
Avatar of rtod2

ASKER

No idea...  Please give me specifics.  Where to click in the back-end and where to go.
Avatar of Jason C. Levine
When you place the above javascript, are you doing it in the Visual Editor so it becomes page content or is it embedded in the page template?
Avatar of rtod2

ASKER

I don't know.  I didn't do the Tweet and Like buttons.
But you did do this email button...so where are you placing the code?
Avatar of rtod2

ASKER

The email button is just in the body of the post at www.frugalmule.com/sandbox.
Okay.  Do you see the code for the Facebook and Twitter buttons in the visual editor?
Avatar of rtod2

ASKER

no
Right, that's what I was afraid of.  

The social sharing buttons are being added by a plugin or have been hardcoded into the page or post template.  If they are being added by a plugin, you'll need to edit the plugin and add your email button code there so it inlines with the other buttons.   If the code is embedded in the page template or post template, you'll have to add your email code to those places (Appearance | Editor then select the appropriate page template or single.php)
ASKER CERTIFIED SOLUTION
Avatar of Sudaraka Wijesinghe
Sudaraka Wijesinghe
Flag of Sri Lanka image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer