Wolfman1000
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moving Widget Sidebar out of Primary DivSo what would be the correct way to move the #secondary Div?
Forum: Fixing WordPress
In reply to: Moving Widget Sidebar out of Primary DivIn sidebar.php I can see the #secondary Div,but cannot see it’s nesting.The code looks as follows:
$options = twentyeleven_get_theme_options(); $current_layout = $options['theme_layout']; if ( 'content' != $current_layout ) : ?> <div id="secondary" class="widget-area" role="complementary"> <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?> <aside id="archives" class="widget"> <h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3> <ul> <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> </ul> </aside> <aside id="meta" class="widget"> <h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <?php wp_meta(); ?> </ul> </aside> <?php endif; // end sidebar widget area ?> </div><!-- #secondary .widget-area --> <?php endif; ?>As I am not really too hot with PHP I’m not really sure what’s going on here.Using the Developer tools in chrome I can ‘see’ the html which causes the #secondary Div to sit in the #Main Div and move it but I cannot find the source code which drives it.
Please bare in mind I’m a relative novice when it comes to this stuff….eeek.
Forum: Fixing WordPress
In reply to: Moving Widget Sidebar out of Primary DivThe only reference in the PHP code I can find to #secondary seems to exist in the header.php file,nested in the nav bar Div:
<nav id="access" role="navigation"> <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3> <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?> <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div> <div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div> <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> </nav><!-- #access --> </header><!-- #branding --> <div id="main">Moving this div doesn’t seem to have any effect however which seems very odd.
Forum: Fixing WordPress
In reply to: Moving Widget Sidebar out of Primary DivDoes anyone know where I can locate the HTML code which sets the nesting for #primary,#main and #secondary?
Forum: Fixing WordPress
In reply to: Moving Widget Sidebar out of Primary DivSo to summarise I would basically like to move the #secondary Div outside of the #main Div so that I can position the Widget area outside of the main content and have it float alongside and follow the content when scrolling.
Any assistance would be much appreciated.
Forum: Fixing WordPress
In reply to: Moving Widget Sidebar out of Primary DivApolagies for the misinformation but you are indeed correct about the nesting.That hasn’t deviated from the main template.
Here is a link to the site:
http://www.braveandboldindustries.com/blog
It isn’t the final design,as I want to get the layout correct first before I finish the styling.
You will also notice that the site has been ajaxed so that the widget area doesn’t refresh when you load a page because I want you to be able to continue listening to the soundcloud links without interuption whilst navigating around the site.This has however broken the nav bar rollover/focus elements which I also need to remedy.
Forum: Fixing WordPress
In reply to: Moving Widget Sidebar out of Primary DivIt’s the twentyeleven theme.
Although I have created a custom child theme from it.
Forum: Fixing WordPress
In reply to: Widget Area Issues S.O.S!Hi.
Yes I have all ready created an extensively customised childtheme including code to include it as a theme option within the dashboards theme settings.
I just can’t figure out why I can’t get it to ‘stretch’.I’ve tried setting the secondary’s height values to auto,100% but still no dice.
Forum: Fixing WordPress
In reply to: Widget Area Issues S.O.S!So is the crux of this that it’s not really going to be possible without a hell of a lot of messing around?
I really thought it would be relatively easy to implement.
Anyone have any idea on how to answer the first part of my question.How to get the widget area to stretch all the way down to the footer?
Forum: Fixing WordPress
In reply to: Widget Area Issues S.O.S!I understand that.However I thought it would be possible like it is for any other website to not have the secondary DIV refresh?So yes the URL would still change for the relevant page but the Widget Area would simply not refresh along with the content in the Primary DIV.
Forum: Fixing WordPress
In reply to: Widget Area Issues S.O.S!After searching the plug-ins own forum,this is the answer I found regarding this query:
“For the player, that’s not something that can be done by the plugin,
it’s something you have to do with your theme.’Forum: Fixing WordPress
In reply to: Widget Area Issues S.O.S!No I haven’t as the question is only loosely related to the plug-in.The question itself is whether or not it is possible to NOT have the widget sidebar refresh when navigating around the site.
Forum: Fixing WordPress
In reply to: Widget Area Issues S.O.S!There must be someway to deactivate refresh on the widget area as I could understand that when using the browser to go forwards and backwards through pages it would refresh the whole page but when using the navigation on the site itself then surely there is no need to refresh the widget area aswell as this would only increase loading time and also make using plug-ins such as soundcloud is gold pretty much redundant if every time you want to leave a comment the music stops!
Forum: Fixing WordPress
In reply to: Widget Area Issues S.O.S!Possibly that could be the case.
Surely though it must be possibly to set the secondary widget are so that it simply just doesn’t refresh.
Wouldn’t things quickly get complicated by retrieving the main content area dynamically as this would also involve commenting etc.
Forum: Fixing WordPress
In reply to: Using Googlefonts in Childtheme-The right way?Good idea.
I’ll give that a shot.