I would like to alter the appearance and location of the tabs, so that they look and function in a manner identical to those in the moleskine theme. Is that within the realm of the possible, and if so, how would be the best way to approach it? Many thanks for your kind assistance.

Comments

Anonymous’s picture

That's a little bit more complicated than the sidebar issue. You need to do 2 things :

First, in style.css, remove the code from the line 490 to 515 :

div.tabs{
	top:5px;
	right:5px;
	position:fixed;
	z-index:999;
}
ul.tabs{
	text-align:center;
	background-color:#FFFFFF;
	padding:0;
	border:5px solid #c00;
}
.tabs .tabs li{
	display:block;
}
ul.primary li a{
	font-size:14px;
	background-color:transparent;
	border:none;
	margin:0;
	display:block;
}
ul.primary li.active a{
	border:none;
	background-color:#cdd;
}

Then, open the page.tpl.php file, and move the line 19 :
<?php if ($tabs): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?>
to line 55 , after the title, and before the help :

<?php if ($title): ?><h1 class="title"><?php print $title; ?></h1><?php endif; ?>
<?php if ($tabs): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?>
<?php print $help; ?>

That should do the trick :)

bwv’s picture

Yes, it did, thank you very much.

Anonymous’s picture

Assigned: Unassigned »
Status: Active » Fixed
bwv’s picture

Hi, one follow up please: is it possible, now that I have reconfigured the tabs, to make them look like the tabs in the moleskine theme? Thanks again for your help.

Anonymous’s picture

That my friend is quite easy, just find out in moleskine what are the css rules that create the tabs design, and copy paste them to abarre stylesheet. It is located from the line 511 to 536 in moleskine's stylesheet. Don't forget to also copy the images used for the tab design. This might work, but there might be some adjustment to do.
I think that it might be a good css exercise, and also, if ou are not using it, I really recommend that you try the firefox addon called FIREBUG, that you can find here : https://addons.mozilla.org/en-US/firefox/addon/1843
It is the best tool to tweak our css around.

Cheers

bwv’s picture

Merci!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.