You are on page 1of 69

Thesis Theme Tutorial in Bangla - Page 1 of 69

 

 

 

 

 

https://www.facebook.com/zamil.hossainsezan32

 

Thesis Theme Tutorial in Bangla - Page 2 of 69


©

Thesis Theme Tutorial in Bangla - Page 3 of 69


। ।
। ।

। https://www.facebook.com/zamil.hossainsezan32)।

। ।
। ।




। ।


। ।



Thesis Theme Tutorial in Bangla - Page 4 of 69


Thesis Theme Tutorial in Bangla - Page 5 of 69


Thesis Theme Tutorial in Bangla - Page 6 of 69

Thesis Theme Tutorial in Bangla - Page 7 of 69


Thesis Theme Tutorial in Bangla - Page 8 of 69

। ।






। ।



Thesis Theme Tutorial in Bangla - Page 9 of 69


Thesis Theme Tutorial in Bangla - Page 10 of 69


Thesis Theme Tutorial in Bangla - Page 11 of 69





। ।

Thesis Theme Tutorial in Bangla - Page 12 of 69





। ।

। ।



/* Function structure */
function function_name () {
?>
Add your custom html code here
<?php
}
add_action('thesis_hook_name','function_name');

remove_action('thesis_hook_name','function_name');

Thesis Theme Tutorial in Bangla - Page 13 of 69




Thesis Theme Tutorial in Bangla - Page 14 of 69









Thesis Theme Tutorial in Bangla - Page 15 of 69


 

Thesis Theme Tutorial in Bangla - Page 16 of 69


Thesis Theme Tutorial in Bangla - Page 17 of 69


। √
। √ ।

। √


Thesis Theme Tutorial in Bangla - Page 18 of 69





। ।

। 

। ।

Thesis Theme Tutorial in Bangla - Page 19 of 69




function cat_nav() { ?>
<ul id="cat_tabs" class="menu">
<?php wp_list_categories('title_li='); ?>
</ul>
<?php }
add_action('thesis_hook_after_header','cat_nav');



function posts_nav() {
echo '<li class="tab tab-recent"><a href="">Blog</a><ul>';
wp_get_archives('title_li=&type=postbypost&limit=10');
echo '</ul></li>';
}
add_action('thesis_hook_last_nav_item','posts_nav');


function add_search_nav() { ?>
<li class="search"><?php thesis_search_form(); ?></li>
<?php }

add_action('thesis_hook_last_nav_item','add_search_nav');


.custom li.search {
float:right;
margin-right:2em;
position:relative;
}
Thesis Theme Tutorial in Bangla - Page 20 of 69
.custom li.search input[type="text"],
.custom li.search input[type="submit"] {
width:100%;
font-size:1.1em;
line-height:1.273em;
padding:0.636em 0.818em;
}

remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_after_header', 'thesis_nav_menu');

remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_after_header', 'my_nav_menu');

function remove_nav() {
if (is_page('6'))
remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_before_html','remove_nav');



custom .rss a {
color: #111111;
text-transform: uppercase;
padding-right: 16px;
background: url('../lib/images/icon-rss.gif') 100% 50% no-repeat;
}
.custom .rss a:hover {
color: #111111;
text-decoration: underline;
}



Thesis Theme Tutorial in Bangla - Page 21 of 69


 । ।



















 ।
 ।


/*google custom search box*/
//remove thesis navigation
remove_action('thesis_hook_before_header', 'thesis_nav_menu');
/*custom Nav*/
function custom_nav() {
echo '<div id="nav">';
echo '<div id="nav_container">';
thesis_nav_menu();
echo '<div class="searchs">';
?>
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en'});
www.FourBlogger.com Page 28
google.setOnLoadCallback(function(){
var customSearchControl = new
google.search.CustomSearchControl('004112828313249196776:vifdttuqeui');
customSearchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
customSearchControl.draw('cse');
}, true);
</script>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css"
type="text/css" />

Thesis Theme Tutorial in Bangla - Page 22 of 69


<?php
echo '</div>';
echo '</div>';
echo '</div>';
}
add_action('thesis_hook_before_header', 'custom_nav');


/* navigation custom search*/
.custom .menu { background-color: #fff;
width:75.5%;
}
.custom .menu li a{
line-height:1.6em;
font-size:1.5em;}
.custom .searchs{
width:24.5%;
}


.menu li.tab-1 a:hover { background:#0000ff; }
.menu li.tab-2 a:hover { background:#ff0000; }


.menu li.tab-1 a { color: #000; }
.menu li.tab-2 a { color: #fff; }


.menu li.tab-1 a:hover { color:#fff; }
.menu li.tab-2 a:hover { color:#000; }


.menu .current a, .menu .current-cat a, .menu .current-menu-item a { background: #dddddd; border-color:
#111111; }


.menu li.tab-1 { background: url("image url here") repeat scroll 0 0 transparent; }
.menu li.tab-2 { background: url("image url here") repeat scroll 0 0 transparent; }


.menu li.tab-1 a:hover { background: url("image url here") repeat scroll 0 0 transparent; }
.menu li.tab-2 a:hover { background: url("image url here") repeat scroll 0 0 transparent; }

Thesis Theme Tutorial in Bangla - Page 23 of 69



remove_action('thesis_hook_before_header', 'thesis_nav_menu'); add_action('thesis_hook_after_header',
'thesis_nav_menu');


.menu { float: right; margin-top: -60px; }



function add_search_nav() { ?> <li class="search"><?php thesis_search_form(); ?></li><?php }
add_action('thesis_hook_last_nav_item','add_search_nav');


.custom li.search { float:right; margin-right:2em; position:relative; } .custom li.search input[type="text"], .custom
li.search input[type="submit"] { width:100%; font-size:1.1em; line-height:1.273em; padding:0.636em 0.818em; }

Thesis Theme Tutorial in Bangla - Page 24 of 69


 

Thesis Theme Tutorial in Bangla - Page 25 of 69





। ।

Thesis Theme Tutorial in Bangla - Page 26 of 69



। ।

*logo change code paste it in custom.css file*/
.custom #header #logo a { display: block; height: 130px; width: 480px;
background: <span style="color: #ff0000">url()</span> no-repeat; outline: none; }
.custom #header #logo, .custom #header #tagline { text-indent: -9999px; }
.custom #header #tagline { height: 0; }
.custom #header {border:0.2em solid #9c9c9c;
height:120px;
padding:5px;
}


√ √ ।

Thesis Theme Tutorial in Bangla - Page 27 of 69


। ।


function custom_header() { ?>
<h1 id="logo"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>
<span id="tagline"><?php bloginfo('description'); ?></span></h1>
<?php
}

remove_action('thesis_hook_header', 'thesis_default_header');
add_action('thesis_hook_header', 'custom_header');


function custom_header() { ?>
<p id="logo"><a href="http://www.example.com/"><?php bloginfo('name'); ?></a></p>
<h1 id="tagline"><?php bloginfo('description'); ?></h1>
<?php
}
remove_action('thesis_hook_header', 'thesis_default_header');
add_action('thesis_hook_header', 'custom_header');


.custom #header #tagline {
height: 30px;
text-indent: 25px;
font-weight: bold;
color: #000000;
padding: 10px 5px;
}

.custom #content_box {
margin-top: 3.2em;
}

Thesis Theme Tutorial in Bangla - Page 28 of 69



custom #header #logo a {
color: #111111;
text-decoration: none;
}

.custom #header #logo a:visited {


color: #111111;
text-decoration: none;
}

.custom #header #logo a:hover {


color: #ffffff;
text-decoration: underline;
}
.custom #header #logo a:active {
color: #ffffff;
text-decoration: none;
}

.custom #header #tagline {


color: #111111;
font-weight: normal;
padding-left: 10px;
}


.custom #header {
background-color:#111111;
}

function header_rotator() { echo thesis_image_rotator(); }


add_action('thesis_hook_after_header','header_rotator');

#header {display:none; }

function header_search_nav() { ?> <li class="headersearch"><?php thesis_search_form(); ?></li> <?php }


add_action('thesis_hook_after_header ','header_search_nav');

.custom li.headersearch { float:right; margin-right:2em; position:relative; list-style:none; margin-top:-100px; }


.custom li.headersearch input[type="text"], .custom li.headersearch input[type="submit"] { width:180px; font-
size:1.1em; line-height:1.273em; padding:0.636em 0.818em; }

Thesis Theme Tutorial in Bangla - Page 29 of 69


। ।


body.custom {
background: #44443f;
}

Thesis Theme Tutorial in Bangla - Page 30 of 69


 

Thesis Theme Tutorial in Bangla - Page 31 of 69





Thesis Theme Tutorial in Bangla - Page 32 of 69


। ।









Thesis Theme Tutorial in Bangla - Page 33 of 69


। ।



/* Style the First (or Only) Post */


.custom .post.top {
background:#FFFFFF none repeat scroll 0 0;
border:15px double #666666 !important;
margin:1em;
padding:2em;
}

/* Style Remaining Posts (in a Multi-Post Listing) */


.custom .post.post_box {
background:#FFFFFF none repeat scroll 0 0;
border:15px double #000000;
margin:1em;
padding:2em;
}

Thesis Theme Tutorial in Bangla - Page 34 of 69


Custom_function revision_date() {
if(get_the_modified_date() != get_the_date())
echo 'Revised on ' . get_the_modified_date();
}
add_action('thesis_hook_after_post','revision_date');



.headline_area h1 {
color:#B22222;
}

custom h2 a {
color: #3399ff;
text-decoration: none;
}
.custom h2 a:visited {
color: #3399ff;
text-decoration: none;
}
.custom h2 a:hover {
color: #ff0000;
text-decoration: underline;
}
.custom h2 a:active {
color: #3399ff;
text-decoration: underline;
}


function thesis_author_box() {
if (is_single()) {
?>
<div class="author_info">
<h4>This post was written by...</h4>
<span class="author_photo"><?php echo get_avatar( get_the_author_id() , 96 ); ?></span>
<p><?php the_author_posts_link(); ?> &ndash; who has written <?php the_author_posts(); ?> posts
on <a href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?></a>.</p>
<p><?php the_author_description(); ?></p>
<p class="author_email"><a href="mailto:<?php the_author_email(); ?>" title="Send an Email to
the Author of this Post">Contact the author</a></p>
</div>
<?php }
}

add_action('thesis_hook_after_post','thesis_author_box');


.custom .author_info {
border:1px dotted #666;
padding:1.0em;

Thesis Theme Tutorial in Bangla - Page 35 of 69


}
.custom .author_info a {
color:#cc0000;
border-bottom:1px dotted #fff;
text-decoration:none;
}
.custom .author_info a:hover {
border-bottom:1px dotted #cc0000;
}
.custom .author_info .author_photo img {
border:1px dotted #666;
padding:0.2em;
float:left;
margin:1.0em 1.0em 1.0em 0em;
}
.custom .author_info p {
margin-top:0.8em;
margin-bottom:0.4em;
}
.custom .author_info p.author_email {
text-indent:1.8em;
background: url('images/my-email-icon.gif') 0px 4px no-repeat;
}

#content_box { background: url("image url here") repeat scroll 0 0 transparent; }

function my_excerpt_length($length) {
return 50; }
add_filter('excerpt_length', 'my_excerpt_length');

.custom .teasers_box h2 a {
color: red;
}
.custom .teasers_box h2 a:hover {
color: yellow;
}

.custom .teaser .format_teaser {


margin-bottom:4px;
margin-top:4px;
}


function my_excerpt_length($length) {
return 50;
}

Thesis Theme Tutorial in Bangla - Page 36 of 69


add_filter('excerpt_length', 'my_excerpt_length');


function teaser_intro($post_count) {
if (is_home()) {
if ($post_count == 1) { ?>
<div class="teaser_intro"><p>HERE IS MY INTRO</p></div>
<?php }
}
}
add_action('thesis_hook_after_post_box','teaser_intro');

.custom .teaser_intro {
border:#000 solid 1px;
background-color: #E7F8FB;
padding:1em;
margin:2em;
}


function add_to_byline() {
if (!is_page())
echo ' in <span>' . get_the_category_list(',') . '</span>';
}
add_action('thesis_hook_byline_item', 'add_to_byline', '99');


function custom_byline() { ?>
<p class="headline_meta"><?php thesis_author(); ?> on <abbr class="published" title="<?php echo
get_the_time('Y-m-d'); ?>"><?php echo get_the_time(get_option('date_format')); ?></abbr>
&middot; <span><a href="<?php the_permalink(); ?>#comments" rel="nofollow">
<?php comments_number(__('0 comments', 'thesis'), __('1 comment', 'thesis'), __('% comments', 'thesis'));
?></a></span></p>
<p class="headline_meta"><?php the_tags('tagged as <span>', ', ', '</span>'); ?>
in <span><?php echo get_the_category_list(','); ?></span></p>
<?php }
add_action('thesis_hook_after_post', 'custom_byline');


function add_to_byline() { ?>
</p><p class="headline_meta"><?php echo __('Posted in:', 'thesis') . ' <span>' . get_the_category_list(',') .
'</span>'; ?>
<?php }
add_action('thesis_hook_byline_item', 'add_to_byline', '99');


function add_to_byline() { ?>
<p class="headline_meta"><?php echo (''). ' <span>' .get_the_time('F j, Y') . '</span></p>'; ?>
<?php }

add_action('thesis_hook_before_headline', 'add_to_byline', '1');

Thesis Theme Tutorial in Bangla - Page 37 of 69


/* Unlinked author name */
.custom span.author {
color: #888888;
}

/* Linked author name */


.custom span.author a {
color: #888888;
}

.custom abbr.published {
font-weight:bold;
cursor: default;
}

.custom .headline_meta a {
color: #888888;
}

/* Remove Italics */
.custom .headline_meta {
font-style: normal;
}
/* Remove Uppercase */
.custom .headline_meta span,
.custom .headline_meta abbr {
text-transform: none;
}

Thesis Theme Tutorial in Bangla - Page 38 of 69


 

Thesis Theme Tutorial in Bangla - Page 39 of 69



function show_cats_tags_comments_two() {
?>
<div class="my-post-stuff">
<p class="cats-in-posts"><span class="my-icon"></span><?php echo get_the_category_list(', '); ?></p>
<?php the_tags('<p class="tags-in-posts"><span class="my-icon"></span>',', ','</p>'); ?>
<p class="comments-in-posts"><span class="my-icon"></span><a href="<?php the_permalink(); ?>#comments"
rel="nofollow"><?php comments_number(__('<span class="number-of-comments">0</span> comments',
'thesis'), __('<span class="number-of-comments">1</span> comment', 'thesis'), __('<span class="number-of-
comments">%</span> comments', 'thesis')); ?></a></p>
</div>
<?php
}
add_action('thesis_hook_after_post', 'show_cats_tags_comments_two');
remove_action('thesis_hook_after_post', 'thesis_comments_link');


.custom .my-post-stuff { display:block; font-family:arial; line-height:16px; clear:both; height:3em; }
.custom .my-post-stuff a { color:#666; padding:2px 0 2px 2px; text-decoration:none; }
.custom .my-post-stuff a:hover { color:#000; background-color:#fff000; }
.custom .my-post-stuff span.my-icon { display:block; height:16px; width:16px; float:left; background:transparent
url('images/my-test-icon.gif') 50% 50% no-repeat; padding-right:10px; } .custom .my-post-stuff .tags-in-posts {
float:left; padding-right:10px; }
.custom .my-post-stuff .comments-in-posts { float:left; }


remove_action('thesis_hook_after_content', 'thesis_prev_next_posts');
add_action('thesis_hook_before_content', 'thesis_prev_next_posts');

Thesis Theme Tutorial in Bangla - Page 40 of 69



remove_action('thesis_hook_after_content', 'thesis_post_navigation');
add_action('thesis_hook_before_content', 'thesis_post_navigation');


function no_home_post_nav() {
if (is_home())
remove_action('thesis_hook_after_content', 'thesis_post_navigation');
}
add_action('thesis_hook_before_content','no_home_post_nav');


/* Customize Previous and Next Links */
div.post_nav p {
color: #888888;
}

.post_nav a {
text-decoration: none;
}


/* Customize Previous and Next Links */
div.prev_next p {
color: #888888;
}

.prev_next a {
text-decoration: none;
}

Thesis Theme Tutorial in Bangla - Page 41 of 69











Thesis Theme Tutorial in Bangla - Page 42 of 69




। ।

। ।


Thesis Theme Tutorial in Bangla - Page 43 of 69



। ।


। ।


। ।



.custom .comment_num {
float:left;
padding-right:5px;
}


.custom .format_text .to_comments span.bracket {color: #ff0000;}


remove_action('thesis_hook_after_post', 'thesis_comments_link');

Thesis Theme Tutorial in Bangla - Page 44 of 69



function my_comments_link() {
if (!is_single() && !is_page()) {
echo '<p class="to_comments"><a href="';
the_permalink();
echo '#comments" rel="nofollow">';
comments_number(__('no comment', 'thesis'), __('<span>1</span> comment', 'thesis'), __('<span>%</span>
comments', 'thesis'));
echo '</a></p>';
}
}
remove_action('thesis_hook_after_post', 'thesis_comments_link');
add_action('thesis_hook_after_post', 'my_comments_link');


/* Style Comments Intro */
.custom .comments_intro p {
font-size: 20px;
}

/* Style Bracket */
.comments_intro p span.bracket {
color: #474EFF;
}

/* Style "Add One" link */


.custom .comments_intro a {
color: #FF63AC;
text-decoration: underline;
}

Custom_functions.php ।
function remove_comments_intro($content) {
$content = '';
return $content;
}
add_filter('thesis_comments_intro', 'remove_comments_intro');


function replace_comments_intro($content) {
$content = '<div class="comments_intro">';
$content .= '<p><a href="#respond" rel="nofollow">Add a Comment</a></p>';
$content .= '</div>' . "\n";
return $content;}
add_filter('thesis_comments_intro', 'replace_comments_intro');

Thesis Theme Tutorial in Bangla - Page 45 of 69



function custom_comment_reply($content) {
$content = str_replace('Reply', 'Reply to this comment', $content);
return $content;
}
add_filter('comment_reply_link', 'custom_comment_reply');


/* Re-style the author and children comments */
.custom dl#comment_list .bypostauthor { background: transparent; } /* Reset Thesis default */
.custom dl#comment_list dd { padding-top: 0; } /* Reset Thesis default */
.custom dl#comment_list dd,
.custom dl#trackback_list dd { padding-left: 0; } /* Reset Thesis default */
.custom dl#comment_list dl dd .format_text { margin-bottom: 0; } /* Reset Thesis default */
.custom dl#comment_list dd div,
.custom dl#trackback_list dd div { padding-left: 0.9em; }
.custom dl#comment_list dl dd div { padding-left: 1.5em; }
.custom dl#comment_list dt.bypostauthor,
.custom dl#comment_list dd.bypostauthor>div { background: #E7F8FB none repeat scroll 0 0; }
.custom dl#comment_list dl.children { background: #FFF; padding-left: 1em; padding-top: 1em; }
.custom dl#comment_list dl.children dt { padding-top: 1em; }
.custom dl#comment_list p.reply { margin-bottom: 1em; }


.custom div#comments dt.bypostauthor,
#comments dt.bypostauthor div.format_text { background:#FFFFCC; }
.custom div#comments dd.bypostauthor,
#comments dd.bypostauthor div.format_text { background:#FFFFCC; }


remove_action('thesis_hook_after_post', 'thesis_comments_link');
add_action('thesis_hook_after_headline','thesis_comments_link');
custom.css
.custom .headline_area h2,
.custom p.to_comments {
display:inline;
}

Thesis Theme Tutorial in Bangla - Page 46 of 69


.custom p.to_comments {
padding-left:1em;
font-size:1.4em;
}

.custom #commentform input.form_submit {


background:ButtonFace;
color:ButtonText;
border:2px outset ButtonFace;
}
.custom #commentform input.form_submit:active {
border-style:inset;
-webkit-appearance:push-button;
}

Thesis Theme Tutorial in Bangla - Page 47 of 69


 

Thesis Theme Tutorial in Bangla - Page 48 of 69





function copyright() {
echo '<p>Copyright &copy; 2008&ndash;' . date('Y') . '</p>';
}
add_action('thesis_hook_footer', 'copyright', '99');


remove_action('thesis_hook_footer', 'thesis_attribution');


function my_footer() {
wp_loginout();
echo '</p>';
}
remove_action('thesis_hook_footer', 'thesis_attribution');
add_action('thesis_hook_footer', 'my_footer');

function footer_cats() {
echo '<ul>';
wp_list_categories('title_li=');
echo '</ul>';
}

Thesis Theme Tutorial in Bangla - Page 49 of 69


add_action('thesis_hook_footer', 'footer_cats',99);


.custom #footer {
text-align:center;
}
.custom #footer ul,
.custom #footer li {
display:inline;
}


if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Footer Widgets Left',
'before_widget' => '<li class="widget %2$s" id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));

if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Footer Widgets Middle',
'before_widget' => '<li class="widget %2$s" id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));

if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Footer Widgets Right',
'before_widget' => '<li class="widget %2$s" id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));

function my_widgetized_footer() { ?>


<div id="footer-widget-block">
<div class="my-footer-one footer-widgets sidebar">
<ul class="sidebar_list">
<?php thesis_default_widget(3); ?>
</ul>
</div>

<div class="my-footer-two footer-widgets sidebar">


<ul class="sidebar_list">
<?php thesis_default_widget(4); ?>
</ul>
</div>

<div class="my-footer-three footer-widgets sidebar">


<ul class="sidebar_list">
<?php thesis_default_widget(5); ?>
</ul>
</div>
</div>
<?php
}
add_action('thesis_hook_footer','my_widgetized_footer','1');

Thesis Theme Tutorial in Bangla - Page 50 of 69


.custom #footer-widget-block { text-align:left; overflow:hidden; }
.custom .footer-widgets { width:33%; float:left; }
.custom .my-footer-one {}
.custom .my-footer-two {}
.custom .my-footer-three {}


add_action('thesis_hook_footer', 'thesis_nav_menu');

#footer { background: none repeat scroll 0 0 #ddd; }

#footer { background: url("image url here") repeat scroll 0 0 transparent; }

Thesis Theme Tutorial in Bangla - Page 51 of 69


 

Thesis Theme Tutorial in Bangla - Page 52 of 69



/* Specify bottom padding on all widgets */


.custom li.widget {
padding-bottom: 15px;
}

/* Specify bottom margin on all widgets */


.custom li.widget {
margin-bottom: 2.769em;
}

Thesis Theme Tutorial in Bangla - Page 53 of 69


<li class="widget widget_categories" id="categories-411758441"><h3>Categories</h3>


.custom li.widget_categories h3 {
color: green;
}


.custom li#categories-411758441.widget h3 {
color: green;
}


.custom ul {
list-style-image: none;
list-style-position: outside;
list-style-type: square;
}

.custom li {
padding-bottom: 5px;
}

function no_sidebars() {
if (is_home())
return false;
else
return true;
}
add_filter('thesis_show_sidebars', 'no_sidebars');

// Add a custom class to home page for styling


function home_body_class($classes) {
if (is_home()) {
$classes[] .= 'home';
}
return $classes;
}
add_filter('thesis_body_classes', 'home_body_class');

Thesis Theme Tutorial in Bangla - Page 54 of 69



function no_sidebars() {
if (is_single())
return false;
else
return true;
}
add_filter('thesis_show_sidebars', 'no_sidebars');


/*sidebar two-column categories */
register_sidebars(1,
array('name' => 'Sidebar_cat',
'before_widget' => '<li class="widget %2$s" id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
)
);
function sidebar_cat() { ?>
<div id="categories" class="sidebar">
<ul class="sidebar_list">
<?php thesis_default_widget(5); ?>
</ul>
</div>
<?php }
add_action('thesis_hook_after_sidebar_1', 'sidebar_cat', '1');

.custom #categories ul.sidebar_list li.widget ul li { width:45%; ; float:left;}



#sidebars { background: #dddddd; }

#sidebars { background: url("image url here") repeat scroll 0 0 transparent; }

li#recent-posts-3.widget { background: none repeat scroll 0 0 #ff0000; }


li#recent-comments-3.widget { background: none repeat scroll 0 0 #00ffff; } li#text-4.widget { background: none
repeat scroll 0 0 #0000ff; }

li#recent-posts-3.widget { background: url("image url here") repeat scroll 0 0 transparent; }

Thesis Theme Tutorial in Bangla - Page 55 of 69


li#recent-comments-3.widget { background: url("image url here") repeat scroll 0 0 transparent; }
li#text-4.widget { background: url("image url here") repeat scroll 0 0 transparent; }

.sidebar h3 { background: none repeat scroll 0 0 #DDDDDD; }

li#recent-posts-3.widget h3 { Color: #0000ff; }


li#recent-comments-3.widget h3 { Color: #dddddd; }
li#text-4.widget h3 { Color: #ff0000; }

li.widget { border: 1px solid #CCCCCC; }

li.widget { border: 1px solid #CCCCCC;


border-radius: 6px 6px 6px 6px; }

Thesis Theme Tutorial in Bangla - Page 56 of 69









। ।



function disable_mmbox_non_home() {
global $thesis_design;
if (!is_home())
$thesis_design->multimedia_box['status'] = "0";
}
add_action('thesis_hook_before_html','disable_mmbox_non_home');

Thesis Theme Tutorial in Bangla - Page 57 of 69





div> <div id="bottom_video_box"> <object width="310" height="300"><param name="movie"


value="http://www.youtube.com/v/Rqjok-http://www.fourblogger.com/ Page 103
Zpa2I&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Rqjok-
Zpa2I&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
width="310" height="300"></embed></object> </div></div><?php } add_action('thesis_hook_after_sidebars',
'bottom_video_box');

.sidebar_box {margin-bottom: 2em; text-align:center;}

Thesis Theme Tutorial in Bangla - Page 58 of 69


 

Thesis Theme Tutorial in Bangla - Page 59 of 69








। ।
function function_name () {
?>
Add your custom html code here

<?php

Thesis Theme Tutorial in Bangla - Page 60 of 69


}
add_action('thesis_hook_feature_box','function_name');



function add_to_feature_box() { ?>
<p>Here is some text in the feature box.</p>
<?php }
add_action('thesis_hook_feature_box','add_to_feature_box');

। ।
function fbox_post() {
query_posts('p=117');
if (have_posts()) : the_post(); ?>
<div <?php post_class($classes); ?> id="post-<?php the_ID(); ?>">
<div class="headline_area">
<h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to
<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php thesis_byline();
echo "</div>\n";
$post_image = thesis_post_image_info('thumb');
echo "\n";
echo "\t\t\t\t<div class=\"format_text entry-content\">\n";
echo $post_image['output'];
the_excerpt();
echo "\t\t\t\t</div>\n</div>\n";
endif;
wp_reset_query();
}
add_action('thesis_hook_feature_box','fbox_post');



function disable_fbox_single() {
global $post, $thesis_design;
$no_fbox = get_post_meta($post->ID, 'no_fbox', true);
if (is_single() && $no_fbox)
remove_action('thesis_hook_before_content','thesis_feature_box');
}
add_action('thesis_hook_before_html','disable_fbox_single');

Thesis Theme Tutorial in Bangla - Page 61 of 69


 

Thesis Theme Tutorial in Bangla - Page 62 of 69


। ।

<a href="https://twitter.com/YOUR_USER_NAME"><img src="YOUR_IMAGE_URL" width="48" height="48"


alt="Twitter" /></a>
<a href="http://feeds.feedburner.com/YOUR_FEED_URL"><img src="YOUR_IMAGE_URL" width="48" height="48"
alt="RSS" /></a>
<a href="http://www.linkedin.com/in/YOUR_DISPLAY_NAME"><img src="YOUR_IMAGE_URL" width="48"
height="48" alt="LinkedIn" /></a>
<a href="http://www.facebook.com/YOUR_FB_IDENTIFIER"><img src="YOUR_IMAGE_URL" width="48"
height="48" alt="Facebook" /></a>


function add_my_social_icons() {
if (is_page()) { ?>
<div id="social-icons">
<a href="https://twitter.com/YOUR_USER_NAME"><img src="YOUR_IMAGE_URL" width="48"
height="48" alt="Twitter" /></a>
<a href="http://feeds.feedburner.com/YOUR_FEED_URL"><img src="YOUR_IMAGE_URL" width="48"
height="48" alt="RSS" /></a>
<a href="http://www.linkedin.com/in/YOUR_DISPLAY_NAME"><img src="YOUR_IMAGE_URL"
width="48" height="48" alt="LinkedIn" /></a>
<a href="http://www.facebook.com/YOUR_FB_IDENTIFIER"><img src="YOUR_IMAGE_URL" width="48"
height="48" alt="Facebook" /></a>
</div>
<?php }
}
add_action('thesis_hook_after_post','add_my_social_icons');

function fb_share() {
if (is_single()) { ?>

<div class="fb_share">
<a name="fb_share" type="box_count" share_url="<?php the_permalink() ?>"
href="http://www.facebook.com/sharer.php">Share</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
</div>

Thesis Theme Tutorial in Bangla - Page 63 of 69


<?php }
}
add_action('thesis_hook_byline_item','fb_share');

function fb_like() {
if (is_single()) { ?>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo
urlencode(get_permalink($post->ID));
?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light"
scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;
height:60px;"></iframe>

<?php }
}
add_action('thesis_hook_after_post','fb_like');


function fb_comments() {
if (is_single()) { ?>
<div class="fb_comments">
<div id="fb-root"></div><script
src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="<?php the_permalink();
?>" numposts="5" width="500" publish_feed="true"></fb:comments>
</div>
<?php }
}
add_action('thesis_hook_after_post_box', 'fb_comments');


function twitter_button() {
if (is_single()) { ?>
<div class="tweetbutton">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-
via="diythemes">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</div>
<?php }
}
add_action('thesis_hook_before_headline', 'twitter_button');

custom.css.
.custom div.tweetbutton {
float:right;
padding-left: 5px;
}

Thesis Theme Tutorial in Bangla - Page 64 of 69



function float_social_counters_on_posts() {
if (is_single()) {
global $post;
echo '<div class="social-post"><div class="counter-twitter"><a data-related="diythemes"
href="http://twitter.com/share" class="twitter-share-button" data-text="' . get_the_title($post->ID) . ' &#8212;"
data-url="' . get_permalink($post->ID) . '" data-count="vertical">Tweet</a><script type="text/javascript"
src="http://platform.twitter.com/widgets.js"></script></div>' . "\n";
?>
<div class="counter-fb-like">
<div id="fb-root"></div><script
src="http://connect.facebook.net/en_US/all.js#appId=144342085643119&amp;xfbml=1"></script><fb:like
layout="box_count" href="<?php the_permalink(); ?>" send="false" width="50" show_faces="false"></fb:like>
</div>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<div class="counter-google-one"><g:plusone size="tall" href="<?php the_permalink();
?>"></g:plusone></div></div>
<?php }
}
add_action('thesis_hook_post_box_top', 'float_social_counters_on_posts');

.custom .post_box { position:relative; }


.custom .social-post { left:-8.6em; position:absolute; top:3.0em; }
.custom .counter-twitter { margin-bottom:1.4em; margin-left:0em; }
.custom .counter-fb-like { margin-bottom:1.6em; margin-left:0.5em; }
.custom .counter-google-one { margin-bottom:1.4em; margin-left:0.2em; }

Thesis Theme Tutorial in Bangla - Page 65 of 69



function after_content_ad() { ?>
// INSERT YOUR AD CODE HERE
<?php }
add_action('thesis_hook_after_content', 'after_content_ad', 1);


function page_ads() {
if (is_page()) { ?>
// INSERT YOUR AD CODE HERE
<?php }
}
add_action('thesis_hook_after_post', 'page_ads');


function after_first_post_ad($post_count) {
if (is_home()) {
if ($post_count == 1) { ?>
// INSERT YOUR AD CODE HERE
<?php }
}
}
add_action('thesis_hook_after_post', 'after_first_post_ad');





Thesis Theme Tutorial in Bangla - Page 66 of 69


 

Thesis Theme Tutorial in Bangla - Page 67 of 69


Thesis Theme Tutorial in Bangla - Page 68 of 69

You might also like