Hi
I am trying to get a quick small site up for my non profit. The idea is just one page with tabbed content. Really lightweight.
I wanted to use Tabber Widget because I love it, but couldn't easily see how to position the tabs in a column to the left of the content. I messed with the CSS a bit but to no avail - as I expected I just managed to stack them above the content, and couldn't see where I could change the layout to put the tab section to the left and not above.
I have created it using a plugin off Code Canyon, which I managed to hack about to do what I wanted, but it is not as versatile or user-friendly as tabber widget. What I am trying to do, and have done with the Code Canyon plugin, is here: http://i58.58twelve.com and that is exactly what I want to do with tabber widget.
Where do I go, if it can be done, to change the layout structure of the tabbed area - i.e float tabber-widget-tabs ul to the left of tabber-widget-content?
If this is do-able it'll make my Easter :-)
Thanks in advance
Andy
Tabs On The Left Hand Side - Possible Or Not?
Started by
58twelve
, Apr 07 2012 02:17 AM
4 replies to this topic
#2
Posted 07 April 2012 - 02:46 AM
Right, I am onto something. I think I managed to understand what was happening in widget.php to come up with a rather ugly, but apparently workable, solution.
I created three id's left-side-tabs - vertical-tabs and vertical-content. Then in widget.php I wrapped the whole tabber widget in left-side-tabs to give myself a bit of control, the tabs in vertical-tabs and the content in vertical-content as follows:
That has generated what I needed, but is obviously vulnerable to disappearing if there are further tabber widget updates. Is there a more elegant, future-proof solution I can use, or can this facility be built into the next update - i.e. some css elements that can be styled by the user or just left as default? Or, have I used a sledgehammer to crack a nut when there is an easier solution?
Thanks
Andy
I created three id's left-side-tabs - vertical-tabs and vertical-content. Then in widget.php I wrapped the whole tabber widget in left-side-tabs to give myself a bit of control, the tabs in vertical-tabs and the content in vertical-content as follows:
<div id="<?php echo $id; ?>-content" class="<?php echo $class; ?>">
<div id="left-side-tabs">
<div id="vertical-tabs">
<ul class="tabber-widget-tabs">
<?php for ( $counter = 1; $counter <= $tabber['num']; $counter++ ) : ?>
<?php
if ( true === $first ) {
$class = ' class="selected"';
$first = false;
}
else
$class = '';
$tab_href = "tab-$id-$counter";
?>
<li><a<?php echo $class; ?> href="#<?php echo $tab_href; ?>"><?php echo $tabber["title_$counter"]; ?></a></li>
<?php endfor; ?>
</ul>
</div>
<?php for ( $counter = 1; $counter <= $tabber['num']; $counter++ ) : ?>
<?php $tab_href = "tab-$id-$counter"; ?>
<div id="vertical-content">
<div id="<?php echo $tab_href; ?>" class="tabber-widget-content">
<?php dynamic_sidebar( "Tabber - {$tabber['name']} - {$tabber["title_$counter"]}" ); ?>
</div>
</div>
</div>
<?php endfor; ?>
</div>
That has generated what I needed, but is obviously vulnerable to disappearing if there are further tabber widget updates. Is there a more elegant, future-proof solution I can use, or can this facility be built into the next update - i.e. some css elements that can be styled by the user or just left as default? Or, have I used a sledgehammer to crack a nut when there is an easier solution?
Thanks
Andy
#4
Posted 07 April 2012 - 04:19 AM
All done and working using the method above: http://i58.58twelve.com
I totally LOVE plugin buddy :-)
If anyone on the tech support can advise re there being a better way that won't be broken by updates, I'd be really grateful!
Andy
I totally LOVE plugin buddy :-)
If anyone on the tech support can advise re there being a better way that won't be broken by updates, I'd be really grateful!
Andy
#5
Posted 09 April 2012 - 11:45 AM
Hi Andy, 
Thanks for posting your custom solution: it looks beautiful!
I'm going to share this with the devs and see what they can suggest or do in the future to allow similar options easily without much editing. Thanks again!
Thanks for posting your custom solution: it looks beautiful!
I'm going to share this with the devs and see what they can suggest or do in the future to allow similar options easily without much editing. Thanks again!
Add/Follow me on Twitter - G+ - Social Improve - The Reasoner - FB - LinkedIn - Google Search
Reply to this Topic
ATTENTION
If this topic is marked RESOLVED or INFORMATION, or if you are NOT experiencing EXACTLY the same issue, please start a new topic to provide the details of your problem. If the solution provided doesn't work for you, you should start a new topic. If you feel this thread contains relevant information, you may include a link to it in your new topic. To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. When posting your question or request on the forum, please be as concise and specific as possible. The shorter and more to the point you can make your request, the better.
For BackupBuddy related issues, be sure to include the status log from your most recent backup.
CLICK HERE to start a new topic in the Tabber-Widget Plugin forum.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





