<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Tag: index-top</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 22 May 2013 23:31:20 +0000</pubDate>

<item>
<title>11thinking on "Move "page_title" below "navigation_above""</title>
<link>http://themeshaper.com/forums/topic/move-page_title-below-navigation_above#post-21033</link>
<pubDate>Wed, 04 May 2011 15:07:06 +0000</pubDate>
<dc:creator>11thinking</dc:creator>
<guid isPermaLink="false">21033@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;And for the people who are interested (you can of course overwrite the navigation with something else!), here's the breadcrumb function which I use to override &#60;code&#62;thematic_navigation_above&#60;/code&#62;:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_nav_above() {
  global $post;
  echo &#38;#39;&#38;lt;div class=&#38;quot;breadcrumbs&#38;quot;&#38;gt;&#38;#39;.&#38;quot;\n&#38;quot;;
  echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;;
  echo get_bloginfo(&#38;#39;url&#38;#39;).&#38;#39;&#38;quot; title=&#38;quot;&#38;#39;.get_bloginfo(&#38;#39;name&#38;#39;).&#38;#39;&#38;quot;&#38;gt;&#38;#39;;
  echo &#38;#39;&#38;lt;strong&#38;gt;Home&#38;lt;/strong&#38;gt;&#38;lt;/a&#38;gt; &#38;amp;raquo; &#38;#39;;
  if (is_category()) {
    global $wp_query;
    $cat_obj = $wp_query-&#38;gt;get_queried_object();
    $thisCat = $cat_obj-&#38;gt;term_id;
    $thisCat = get_category($thisCat);
    $parentCat = get_category($thisCat-&#38;gt;parent);
    if ($thisCat-&#38;gt;parent != 0)
      echo(get_category_parents($parentCat,TRUE,&#38;#39; &#38;amp;raquo; &#38;#39;));
    single_cat_title();
  }
  elseif (is_day()) {
    echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;.get_year_link(get_the_time(&#38;#39;Y&#38;#39;)).&#38;#39;&#38;quot;&#38;gt;&#38;#39;.get_the_time(&#38;#39;Y&#38;#39;).&#38;#39;&#38;lt;/a&#38;gt; &#38;amp;raquo; &#38;#39;;
    echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;.get_month_link(get_the_time(&#38;#39;Y&#38;#39;),get_the_time(&#38;#39;m&#38;#39;)).&#38;#39;&#38;quot;&#38;gt;&#38;#39;.get_the_time(&#38;#39;F&#38;#39;).&#38;#39;&#38;lt;/a&#38;gt; &#38;amp;raquo; &#38;#39;;
    the_time(&#38;#39;j&#38;#39;);
  }
  elseif (is_month()) {
    echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;.get_year_link(get_the_time(&#38;#39;Y&#38;#39;)).&#38;#39;&#38;quot;&#38;gt;&#38;#39;.get_the_time(&#38;#39;Y&#38;#39;).&#38;#39;&#38;lt;/a&#38;gt; &#38;amp;raquo; &#38;#39;;
    the_time(&#38;#39;F&#38;#39;);
  }
  elseif (is_year()) { the_time(&#38;#39;Y&#38;#39;); }
  elseif (is_single() &#38;#38;&#38;#38; !is_attachment()) {
    $cat = get_the_category();
    $cat = $cat[0];
    echo get_category_parents($cat,TRUE,&#38;#39; &#38;amp;raquo; &#38;#39;) . get_the_title();
  }
  elseif (is_attachment()) {
    $parent = get_post($post-&#38;gt;post_parent);
    $cat = get_the_category($parent-&#38;gt;ID);
    $cat = $cat[0];
    echo get_category_parents($cat,TRUE,&#38;#39; &#38;amp;raquo; &#38;#39;);
    echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;.get_permalink($parent).&#38;#39;&#38;quot;&#38;gt;&#38;#39;.$parent-&#38;gt;post_title.&#38;#39;&#38;lt;/a&#38;gt; &#38;amp;raquo; &#38;#39; . get_the_title();
  }
  elseif (is_page() &#38;#38;&#38;#38; !$post-&#38;gt;post_parent) { the_title(); }
  elseif (is_page() &#38;#38;&#38;#38; $post-&#38;gt;post_parent) {
    $parent_id  = $post-&#38;gt;post_parent;
    $breadcrumbs = array();
    while ($parent_id) {
      $page = get_page($parent_id);
      $breadcrumbs[] = &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;.get_permalink($page-&#38;gt;ID).&#38;#39;&#38;quot;&#38;gt;&#38;#39;.get_the_title($page-&#38;gt;ID).&#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
      $parent_id  = $page-&#38;gt;post_parent;
    }
    $breadcrumbs = array_reverse($breadcrumbs);
    foreach ($breadcrumbs as $crumb) echo $crumb .&#38;#39; &#38;amp;raquo; &#38;#39;;
    the_title();
  }
  elseif (is_search()) {
    echo &#38;#39;Search Results for &#38;#39;. get_search_query();
  }
  elseif (is_tag()) { echo single_tag_title(&#38;#39;&#38;#39;, false); }
  elseif (is_author()) { global $author; echo get_userdata($author)-&#38;gt;display_name; }
  elseif (is_404()) { echo &#38;#39;Error 404&#38;#39;; }
  if (get_query_var(&#38;#39;paged&#38;#39;)) {
    if (is_category() &#124;&#124; is_day() &#124;&#124; is_month() &#124;&#124; is_year() &#124;&#124; is_search() &#124;&#124; is_tag() &#124;&#124; is_author())
    echo &#38;#39; (&#38;#39;;
    echo __(&#38;#39;Page&#38;#39;) . &#38;#39; &#38;#39; . get_query_var(&#38;#39;paged&#38;#39;);
    if (is_category() &#124;&#124; is_day() &#124;&#124; is_month() &#124;&#124; is_year() &#124;&#124; is_search() &#124;&#124; is_tag() &#124;&#124; is_author())
    echo &#38;#39;)&#38;#39;;
  }
  echo &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>11thinking on "Move "page_title" below "navigation_above""</title>
<link>http://themeshaper.com/forums/topic/move-page_title-below-navigation_above#post-21032</link>
<pubDate>Wed, 04 May 2011 14:45:08 +0000</pubDate>
<dc:creator>11thinking</dc:creator>
<guid isPermaLink="false">21032@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;For &#60;strong&#62;Step 2)&#60;/strong&#62;: If you want to add the nav_above back to &#60;em&#62;all&#60;/em&#62; pages, you can use the following code instead.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function add_navigation_above() {
  if (!is_archive() &#38;#38;&#38;#38; !is_attachment() &#38;#38;&#38;#38; !is_search()) {
    childtheme_override_nav_above();
  }
}
add_action(&#38;#39;thematic_abovepost&#38;#39;,&#38;#39;add_navigation_above&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This is because the archive pages (Category, Tag, Author or a Date), the attachment and search pages have a page title.
&#60;/p&#62;</description>
</item>
<item>
<title>11thinking on "Move "page_title" below "navigation_above""</title>
<link>http://themeshaper.com/forums/topic/move-page_title-below-navigation_above#post-21031</link>
<pubDate>Wed, 04 May 2011 14:19:15 +0000</pubDate>
<dc:creator>11thinking</dc:creator>
<guid isPermaLink="false">21031@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I return here after 8 months. The solution Jonny provided is not really what I want.&#60;/p&#62;
&#60;p&#62;The reason why I want to move the &#60;code&#62;thematic_navigation_above&#60;/code&#62; above &#60;code&#62;thematic_page_title&#60;/code&#62; is because I've replaced &#60;code&#62;thematic_navigation_above&#60;/code&#62; with a breadcrumb function (using &#60;code&#62;childtheme_override_nav_above&#60;/code&#62;). Except for the archive pages, &#60;code&#62;thematic_navigation_above&#60;/code&#62; shows on top of the content.&#60;/p&#62;
&#60;p&#62;Today I was testing using trial and error until I finally found the solution, which is much more compact and simple than I thought. I would love to share with everyone who stumble upon this post.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Step 1)&#60;/strong&#62; Firstly, we remove the &#60;code&#62;thematic_navigation_above&#60;/code&#62; (everywhere).&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function remove_navigation_above() {
  remove_action(&#38;#39;thematic_navigation_above&#38;#39;,&#38;#39;thematic_nav_above&#38;#39;,2);
}
add_action(&#38;#39;wp&#38;#39;,&#38;#39;remove_navigation_above&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;strong&#62;Step 2)&#60;/strong&#62; Then we add it again to the pages you want. In my case it is the single post, page, 404 error pages, except for attachment page.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function add_navigation_above() {
  if ((is_page() &#124;&#124; is_single() &#124;&#124; is_404()) &#38;#38;&#38;#38; !is_attachment()) {
    childtheme_override_nav_above();
  }
}
add_action(&#38;#39;thematic_abovepost&#38;#39;,&#38;#39;add_navigation_above&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;strong&#62;Step 3)&#60;/strong&#62; Lastly we add the page title again to the archive pages, but below the page title.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function nav_above_pagetitle($content) {
  $navabove = childtheme_override_nav_above();
  return ($navabove . $content);
}
add_filter(&#38;#39;thematic_page_title&#38;#39;,&#38;#39;nav_above_pagetitle&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Done! :)
&#60;/p&#62;</description>
</item>
<item>
<title>Jonny Janiero on "index-top only on homepage"</title>
<link>http://themeshaper.com/forums/topic/index-top-only-on-homepage#post-19024</link>
<pubDate>Tue, 08 Feb 2011 02:31:29 +0000</pubDate>
<dc:creator>Jonny Janiero</dc:creator>
<guid isPermaLink="false">19024@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;as default, the widget- indextop should only be showing on your home page.&#60;br /&#62;
are you using a static home page?
&#60;/p&#62;</description>
</item>
<item>
<title>lastraw on "index-top only on homepage"</title>
<link>http://themeshaper.com/forums/topic/index-top-only-on-homepage#post-19020</link>
<pubDate>Tue, 08 Feb 2011 02:06:06 +0000</pubDate>
<dc:creator>lastraw</dc:creator>
<guid isPermaLink="false">19020@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You could try the plugin Widget Context&#60;br /&#62;
&#60;a href=&#34;http://konstruktors.com/projects/wordpress-plugins/widget-context/&#34; rel=&#34;nofollow&#34;&#62;http://konstruktors.com/projects/wordpress-plugins/widget-context/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>keco86 on "index-top only on homepage"</title>
<link>http://themeshaper.com/forums/topic/index-top-only-on-homepage#post-19017</link>
<pubDate>Mon, 07 Feb 2011 21:22:28 +0000</pubDate>
<dc:creator>keco86</dc:creator>
<guid isPermaLink="false">19017@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi There&#60;br /&#62;
I am trying to have a widget only show on my main landing page. IE my posts page. I have the widget in index-top but it is displaying on all of the pages. Is there not a way to have it only on the homepage?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://lazer.rdns.net/~kmf&#34; rel=&#34;nofollow&#34;&#62;http://lazer.rdns.net/~kmf&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Jonny Janiero on "Move "page_title" below "navigation_above""</title>
<link>http://themeshaper.com/forums/topic/move-page_title-below-navigation_above#post-15023</link>
<pubDate>Tue, 24 Aug 2010 16:50:41 +0000</pubDate>
<dc:creator>Jonny Janiero</dc:creator>
<guid isPermaLink="false">15023@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;you dont need the css, thats just to force nav at top to show from beginning
&#60;/p&#62;</description>
</item>
<item>
<title>Jonny Janiero on "Move "page_title" below "navigation_above""</title>
<link>http://themeshaper.com/forums/topic/move-page_title-below-navigation_above#post-15022</link>
<pubDate>Tue, 24 Aug 2010 16:44:36 +0000</pubDate>
<dc:creator>Jonny Janiero</dc:creator>
<guid isPermaLink="false">15022@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;oh i,&#60;br /&#62;
demo here &#60;a href=&#34;http://www.dev.virtualpudding.com/category/another-category/&#34; rel=&#34;nofollow&#34;&#62;http://www.dev.virtualpudding.com/category/another-category/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Jonny Janiero on "Move "page_title" below "navigation_above""</title>
<link>http://themeshaper.com/forums/topic/move-page_title-below-navigation_above#post-15021</link>
<pubDate>Tue, 24 Aug 2010 16:43:52 +0000</pubDate>
<dc:creator>Jonny Janiero</dc:creator>
<guid isPermaLink="false">15021@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;reagrding your first query. i did try last night and couldn't get anything to work. rather stumped.&#60;/p&#62;
&#60;p&#62;i did hack a work around together, its not pretty.&#60;br /&#62;
using latest revision...&#60;br /&#62;
i took your first step&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function remove_page_title(){
    $content = &#38;#39;&#38;#39;;
    return $content;
}
add_filter(&#38;#39;thematic_page_title&#38;#39;, &#38;#39;remove_page_title&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then... added to the nav-above...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_nav_above(){

		if (is_single()) { ?&#38;gt;

				&#38;lt;div id=&#38;quot;nav-above&#38;quot; class=&#38;quot;navigation&#38;quot;&#38;gt;
					&#38;lt;div class=&#38;quot;nav-previous&#38;quot;&#38;gt;&#38;lt;?php thematic_previous_post_link() ?&#38;gt;&#38;lt;/div&#38;gt;
					&#38;lt;div class=&#38;quot;nav-next&#38;quot;&#38;gt;&#38;lt;?php thematic_next_post_link() ?&#38;gt;&#38;lt;/div&#38;gt;
				&#38;lt;/div&#38;gt;

&#38;lt;?php
		} else { ?&#38;gt;

				&#38;lt;div id=&#38;quot;nav-above&#38;quot; class=&#38;quot;navigation&#38;quot;&#38;gt;
               		&#38;lt;?php if(function_exists(&#38;#39;wp_pagenavi&#38;#39;)) { ?&#38;gt;
                	&#38;lt;?php wp_pagenavi(); ?&#38;gt;
					&#38;lt;?php } else { ?&#38;gt;
					&#38;lt;div class=&#38;quot;nav-previous&#38;quot;&#38;gt;&#38;lt;?php next_posts_link(__(&#38;#39;&#38;lt;span class=&#38;quot;meta-nav&#38;quot;&#38;gt;&#38;amp;laquo;&#38;lt;/span&#38;gt; Older posts&#38;#39;, &#38;#39;thematic&#38;#39;)) ?&#38;gt;&#38;lt;/div&#38;gt;
					&#38;lt;div class=&#38;quot;nav-next&#38;quot;&#38;gt;&#38;lt;?php previous_posts_link(__(&#38;#39;Newer posts &#38;lt;span class=&#38;quot;meta-nav&#38;quot;&#38;gt;&#38;amp;raquo;&#38;lt;/span&#38;gt;&#38;#39;, &#38;#39;thematic&#38;#39;)) ?&#38;gt;&#38;lt;/div&#38;gt;
					&#38;lt;?php } ?&#38;gt;
                    				&#38;lt;/div&#38;gt;
                     &#38;lt;?php if (is_category()) {  ?&#38;gt;
                    &#38;lt;div class=&#38;quot;page-title&#38;quot;&#38;gt;Archived in: &#38;lt;?php
$category = get_the_category();
echo $category[0]-&#38;gt;cat_name;
?&#38;gt;&#38;lt;/div&#38;gt;
					&#38;lt;?php } ?&#38;gt;			

&#38;lt;?php
}

} // end nav_above&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;this placed a 'current category' in the existing div class 'page-title' (that has been filtered out).&#60;/p&#62;
&#60;p&#62;the conditional tag in the above code&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if (is_category()) {  ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;is telling to add to category only, so you could further add to this.&#60;/p&#62;
&#60;p&#62;as for css, i commented out the following so our new page-title would show on the first page of category view&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/*.paged #nav-above {
    display:block;
    padding:0 0 44px 0;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and changed #nav-above to display:block from display:none&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#nav-above {
    display:block;
    padding:0 0 44px 0;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;i said it was messy. isn't ideal. if anyone can nail the function to move page title below nav above, would be great.
&#60;/p&#62;</description>
</item>
<item>
<title>11thinking on "Move "page_title" below "navigation_above""</title>
<link>http://themeshaper.com/forums/topic/move-page_title-below-navigation_above#post-15017</link>
<pubDate>Tue, 24 Aug 2010 15:10:37 +0000</pubDate>
<dc:creator>11thinking</dc:creator>
<guid isPermaLink="false">15017@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;And I also want to move #index-top (&#60;code&#62;get_sidebar(&#38;#39;index-top&#38;#39;)&#60;/code&#62;) above #nav-above (&#60;code&#62;thematic_navigation_above&#60;/code&#62;) as well, I think that goes exactly the same way as moving &#60;code&#62;thematic_page_title&#60;/code&#62; below &#60;code&#62;thematic_navigation_above&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;I hope that someone can at least give me a hint. Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>11thinking on "Move "page_title" below "navigation_above""</title>
<link>http://themeshaper.com/forums/topic/move-page_title-below-navigation_above#post-14949</link>
<pubDate>Mon, 23 Aug 2010 19:27:31 +0000</pubDate>
<dc:creator>11thinking</dc:creator>
<guid isPermaLink="false">14949@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I am developing my first child theme for Thematic, so I'm very newbie. I'm able to find all answers on my questions by searching here and on internet, however I couldn't find an answer on this. But if it has been asked before, then I am very sorry for wasting your time.&#60;/p&#62;
&#60;p&#62;As the title of this topic says, I want to move the &#60;code&#62;thematic_page_title&#60;/code&#62; below &#60;code&#62;thematic_navigation_above&#60;/code&#62; everywhere they appear together (archive page, author page, category page, search result page, tag page).&#60;br /&#62;
I think that I've to remove the page_title first and then add it below navigation_above again? The following will remove the page_title, but I don't know what's the next step.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function remove_page_title(){
    $content = &#38;#39;&#38;#39;;
    return $content;
}
add_filter(&#38;#39;thematic_page_title&#38;#39;, &#38;#39;remove_page_title&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The reason why I want it is because I've hooked breadcrumbs into navigation_above, and I want it to appear at the top of each page. It looks perfect in single posts and pages as they have nothing above navigation_above (no page_title).&#60;/p&#62;
&#60;p&#62;Thank you for reading, I'm looking forward to your replies!
&#60;/p&#62;</description>
</item>
<item>
<title>jrobben on "formating index top and other widget areas"</title>
<link>http://themeshaper.com/forums/topic/formating-index-top-and-other-widget-areas#post-8326</link>
<pubDate>Tue, 08 Dec 2009 02:21:05 +0000</pubDate>
<dc:creator>jrobben</dc:creator>
<guid isPermaLink="false">8326@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;When I add post information to the widgets outside of the sidebar area the divisions containing the widgets pick up the default formatting for the sidebar class=aside. Or it resets to the bowser defaults and uses the imported reset.css or typography.css, it does not use the general themes style.css. Unless they are in the sidebar area I would like them to inherent the css settings in style.css. I am sure I am missing something simple.&#60;/p&#62;
&#60;p&#62;the h1 header picks up the styling from .aside&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.besthealthsupplies.com&#34; rel=&#34;nofollow&#34;&#62;www.besthealthsupplies.com&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
