subscription

This highly visible subscription box will help you get more email and rss subscribers by adding itself after every post on your WordPress Thesis site.

In this tutorial you will first need to download the yellow star icon HERE and upload it to your theme's custom "images" folder. Once complete, you just have to edit the usual two files: custom.css and custom_functions.php

Add the following code to your custom.css file:

1
2
3
4
5
6
.custom .format_text p.voteme {
background: #ffffa0 url('/wp-content/themes/yourtheme/custom/images/yellow_star.png') center no-repeat;
border: 2px solid #e5e597;
background-position: 7px 50%; /* x-pos y-pos */
text-align: left;
padding: 5px 5px 5px 45px;}

Add the following code to your custom_functions.php file:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* adds a subscribe box to bottom of post (home) */
function seth_godin_stuff () {
if (is_home()) { ?>
<p><p class="voteme">Don't miss an article!  Subscribe to <i>yoursitename</i> <a href="yourrssfeedurl">via RSS</a> or <a href="youremailfeedurl">via e-mail</a>.<p/>
<?php
}
}
add_action('thesis_hook_after_post', 'seth_godin_stuff', '1');

/* adds a subscribe box to bottom of post (single) */
function seth_godin_stuff_2 () {
if (is_single()) { ?>
<p><p class="voteme"Don't miss an article!  Subscribe to <i>yoursitename</i> <a href="yourrssfeedurl">via RSS</a> or <a href="youremailfeelurl">via e-mail</a>.<p/>
<?php
}
}
add_action('thesis_hook_after_post', 'seth_godin_stuff_2', '2');

Categories

Impact
Search & Win

Link To Me

If you find anything useful, please