Saturday, 1 October 2011

CBI Looking RSS Subscription Box For Thesi

The code

The code below is divided into two sections.
  • Code to be entered in Custom_Functions.php file
  • Code to be entered in Custom.css
Copy and paste the code in Custom_Functions.php file
1
2
3
4
5
6
7
8
9
function post_beneath_rss() {if (is_single()){ ?>
<div><div><a href="http://feeds.feedburner.com/creativebloggingideas">RSS</a></div>
<h4>Subscribe to CreativeBloggingIdeas.com</h4>
<p>Free with subscription<br/>
"How To Write High Quality Content & 3 Super Ways To Get Huge Traffic From It"</p> <a
href="http://feeds.feedburner.com/creativebloggingideas">Click here to subscribe</a><br />
<font size="1px" color="#909192">You will receive download link in your mailbox in confirmation mail</font>
</div>
<?php }}add_action('thesis_hook_after_post_box', 'post_beneath_rss');
Copy the code below and paste it in Custom.css file
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.subscribe-now {
 margin-top: 10px;
 margin-bottom: 10px;
 margin-right: auto;
 margin-left: auto;
 position:relative;
 width:430px;
 border:1px solid #e0d5d5;
 background:#f5f2f2 url(http://i48.tinypic.com/333bvhf.png) no-repeat 10px bottom;
 padding:15px 32px 10px 123px;
 font-weight:bold;
 font-size:14px;
 line-height:16px;
 text-align:center;
}
.subscribe-now div {
 position:absolute;
 right:-9px;
 top:-13px;
 width:42px;
 height:42px;
 background:url(http://i45.tinypic.com/2zr2fj9.png) no-repeat;
}
.subscribe-now div a {
 display:block;
 width:100%;
 height:100%;
 overflow:hidden;
 text-indent:-999em;
}
.subscribe-now h4 {
 font-size:1em;
 color:#f00;
 margin:0 0 1.5em;
}
.subscribe-now p {
 
 margin:0 0 1.5em;
}
.subscribe-now a,
.subscribe-now a:visited {
 color:#3333f5;
 text-decoration:underline;
}
.subscribe-now a:hover,
.subscribe-now a:focus {
 text-decoration:none;
}


No comments:

Post a Comment