Comment on WordPress Social Network Theme by SEO Dave.

WordPress Promotion Theme Adding a social media button where the current buttons reside would require editing the file

/stallion-seo-theme/plugins/social-network.php

I’m not familiar with Pinterest, so no idea what their button code is.

If you look in the file above you’ll find code like

<?php if(st_stumbleb()=='1'){ ?>
<div class="floatleft"><su:badge layout="1" location="<?php the_permalink(); ?>"></su:badge></div>
<?php } ?>

The first and last line of the above code is checking if a Stallion options should load the code, since there won’t be Pinterest on/off option it’s not needed.

So what you’ve want is the middle bit:

<div class="floatleft">PUT THE PINTEREST CODE HERE</div>

If you added this below the Stunbleupon code so it looked like this:

<?php if(st_stumbleb()=='1'){ ?>
<div class="floatleft"><su:badge layout="1" location="<?php the_permalink(); ?>"></su:badge></div>
<?php } ?>

<div class="floatleft">PUT THE PINTEREST CODE HERE</div>

The Pinterest button should load after Stubleupon (if you have it on).

This assumes the Pinterest button code is a single copy and paste bit of code (most buttons are).

If you want to try this I suggest installing a Stallion child Theme first, you can use the Free Example Child Theme from Stallion Child Theme Info. You’d activate a child theme and copy the /stallion-seo-theme/plugins/social-network.php file to your Child theme folder and edit it there. This would have the same affect as editing the file at /stallion-seo-theme/plugins/social-network.php but when Stallion updates you won’t loose your edits.

An alternative for some types of button code would be to try adding the button code to a Text Widget added to the “Content Ad widget” area under Appearance widgets and under Stallion Layout setting “Content Widget Area Alignment” to Float left or right. Whether this works depends on the button code, Google Plus code works this way, but adding the StumbleUpon code I’m using wouldn’t work because it includes PHP. Worth a try before messing with editing files.

You could also look for a Pinterest plugin.

When I get the time I’ll see if it’s worth adding to Stallion. My wife knows what it is :-) she says it’s used a lot with images on craft type sites.

David