Jump to content

Wordpress, Thesis Theme and simple (ungggh) problem


KalaniPrince

Recommended Posts

just trying to get the search field to float next to my RSS icon in the nav menu. Any ideas ? The local support forum for this sites theme have not been able to solve the problem. I have been only using 1 of 3 files to modify all the styling of this site :http://www.photoshopelicio.us I express my gratitude in advance to anyone that can solve this seemingly easy problem that has now been going on for 3 days. Aloha-

 

Kalani

 

#1 custom.css

.custom #header #logo a { display: block; height: 300px; width: 1024px; background: url('images/header.jpg') no-repeat; outline: none; }

/* This line gets rid of the site title & tagline by casting them out to far left field */
.custom #header #logo, .custom #header #tagline { text-indent: -9999px; }

/* This line collapses the vertical space of the tagline so that there isn't unnecessary white space after the header image */

/* This is a bit of a kludge, but it seems to work. */
.custom #header #tagline { height: 0; }

/* This line removes the padding from the header so that the background image sits close to the nav menu, the bottom border of the header, and the sides of the content */
.custom #header { padding: 0; }
/*---:[ Set 1: solid background with slick borders around your "page" area ]:---*/

body.custom { background: #44443f; }

.custom #container { margin-top: 0em; margin-bottom: 0em; padding: 0em; background: #33332f; border: 0em solid #3e3e3a; }

	.custom #page { background: #fff; }

/*---:[ end Set 1 ]:---*/
.custom #header {
height:297px;
}
#column_wrap .sidebar ul.sidebar_list {padding-top:.6em;}

.sidebar ul.sidebar_list {padding-top:.6em;}
.sidebar ul.sidebar_list {padding-left:.5em;}

.custom #a2a_dd Add_to_Any_Subscribe_Widget element.style { float:right; } 
  
.custom #header {position:relative;}
.custom #header a.a2a_dd img {position:absolute; right:.8em; bottom:-3em;}

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

#s {
     float: right;
     background: url("images/bkg_search.png") 0 0 no-repeat;
     color: #ffaf5a;
     padding:5px 10px 5px 30px;
     width: 156px;
}

 

#2 custom_functions.php

function custom_bookmark_links() {
global $post;
?>
<ul class="bookmark_links">
<li><a rel="nofollow" href="http://delicious.com/save?url=<?php urlencode(the_permalink()); ?>&title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url=<?php urlencode(the_permalink()); ?>&title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark this post on del.icio.us">Bookmark this article on Delicious</a></li>
</ul>
<?php
}
remove_action('thesis_hook_before_header', 'suckerfish');
add_action('thesis_hook_after_title', 'suckerfish');

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


remove_action('thesis_hook_before_header', 'suckerfish');

function custom_header() { 
include (TEMPLATEPATH . '/custom/rotating_images.php');
} 
remove_action('thesis_hook_header', 'thesis_default_header'); 
add_action('thesis_hook_header', 'custom_header');


function bleikamp_nav() {
    echo '<div id="nav">';
    echo '<div class="nav_container">';
    thesis_search_form(); // The default search function
    echo '</div>'; 
    echo '</div>'; 
}
// Hook in my new navigation + search
add_action('thesis_hook_before_content', 'bleikamp_nav')
;

 

#3 rotating_images.php

<?php

$random_image = rand(1,3); // the second number should equal the total number of images that you want to rotate

?>
			<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/custom/headers/header_<?php echo $random_image; ?>.jpg" alt="Random header image... Refresh for more!" /></a>
                
                <?php if( class_exists('Add_to_Any_Subscribe_Widget') )  { Add_to_Any_Subscribe_Widget::display(); } ?>
               

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.