Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

[SOLVED] How to insert code above the loop?


 
Prev Previous Post   Next Post Next
  #1  
Old Jun 2, 2011, 02:26 AM
Harald
 
72 posts · Mar 2010
[SOLVED] How to insert code above the loop?

I had the code below inserted above the loop in Atahualpa 364, but cant get it to work in 367. Tried to insert it into the Index file but I am not good enough to get it to work. Is it possible, and if so could some one show me how?


<style type="text/css">
<!--
#nav{list-style-type:none; width:1026px; height:35px; padding:0px; margin:0px 0 10px 0 auto;}
#nav li{float:left}
#nav li a{background:url(/wp-content/themes/atahualpa/images/navbar2.png) no-repeat; outline:none; display:block; width:128px; height:35px}
#nav li a span{display:none}
#nav li a#iskanorfalsterbo:{background-position:0 0;}
#nav li a#iskanorfalsterbo:hover{background-position:0 -35px;}
#nav li a#iskanorfalsterbo:active{background-position:0 -70px;}
#nav li a#iskanorfalsterbo.on:link,
#nav li a#iskanorfalsterbo.on:hover,
#nav li a#iskanorfalsterbo.on:active,
#nav li a#iskanorfalsterbo.on:visited{background-position:0 -105px;}
#nav li a#affarsliv{background-position:-128px 0;}
#nav li a#affarsliv:hover{background-position:-128px -35px;}
#nav li a#affarsliv:active{background-position:-128px -70px;}
#nav li a#affarsliv.on:link,
#nav li a#affarsliv.on:hover,
#nav li a#affarsliv.on:active,
#nav li a#affarsliv.on:visited{background-position:-128px -105px;}
#nav li a#familjeliv{background-position:-256px 0;}
#nav li a#familjeliv:hover{background-position:-256px -35px;}
#nav li a#familjeliv:active{background-position:-256px -70px;}
#nav li a#familjeliv.on:link,
#nav li a#familjeliv.on:hover,
#nav li a#familjeliv.on:active,
#nav li a#familjeliv.on:visited{background-position:-256px -105px;}
#nav li a#ungdomsliv{background-position:-384px 0;}
#nav li a#ungdomsliv:hover{background-position:-384px -35px;}
#nav li a#ungdomsliv:active{background-position:-384px -70px;}
#nav li a#ungdomsliv.on:link,
#nav li a#ungdomsliv.on:hover,
#nav li a#ungdomsliv.on:active,
#nav li a#ungdomsliv.on:visited{background-position:-384px -105px;}
#nav li a#foreningsliv{background-position:-512px 0;}
#nav li a#foreningsliv:hover{background-position:-512px -35px;}
#nav li a#foreningsliv:active{background-position:-512px -70px;}
#nav li a#foreningsliv.on:link,
#nav li a#foreningsliv.on:hover,
#nav li a#foreningsliv.on:active,
#nav li a#foreningsliv.on:visited{background-position:-512px -105px;}
#nav li a#naturliv{background-position:-640px 0;}
#nav li a#naturliv:hover{background-position:-640px -35px;}
#nav li a#naturliv:active{background-position:-640px -70px;}
#nav li a#naturliv.on:link,
#nav li a#naturliv.on:hover,
#nav li a#naturliv.on:active,
#nav li a#naturliv.on:visited{background-position:-640px -105px;}
#nav li a#evenemang{background-position:-768px 0;}
#nav li a#evenemang:hover{background-position:-768px -35px;}
#nav li a#evenemang:active{background-position:-768px -70px;}
#nav li a#evenemang.on:link,
#nav li a#evenemang.on:hover,
#nav li a#evenemang.on:active,
#nav li a#evenemang.on:visited{background-position:-768px -105px;}
#nav li a#search{background-position:-896px 0;}
#nav li a#search:hover{background-position:-896px -0px;}
#nav li a#search:active{background-position:-896px 0px;}
#nav li a#search.on:link,
#nav li a#search.on:hover,
#nav li a#search.on:active,
-->
</style>
<body>
<ul id="nav">
<li><a id="iskanorfalsterbo" href="http://www.iskanorfalsterbo.se/"><span>iSkanörFalsterbo</span></a></li>
<li><a id="affarsliv" href="http://www.iskanorfalsterbo.se/?page_id=15" <?php if (is_page('Affärsliv')) echo'class="on"'; ?>><span>Affärsliv</span></a></li>
<li><a id="familjeliv" href="http://www.iskanorfalsterbo.se/?page_id=33" <?php if (is_page('Familjeliv')) echo'class="on"'; ?>><span>Familjeliv</span></a></li>
<li><a id="ungdomsliv" href="http://www.iskanorfalsterbo.se/?page_id=36" <?php if (is_page('Ungdomsliv')) echo'class="on"'; ?>><span>Ungdomsliv</span></a></li>
<li><a id="foreningsliv" href="http://www.iskanorfalsterbo.se/?page_id=40" <?php if (is_page('Föreningsliv')) echo'class="on"'; ?>><span>Föreningsliv</span></a></li>
<li><a id="naturliv" href="http://www.iskanorfalsterbo.se/?page_id=47" <?php if (is_page('Naturliv')) echo'class="on"'; ?>><span>Naturliv</span></a></li>
<li><a id="evenemang" href="http://www.iskanorfalsterbo.se/?page_id=49" <?php if (is_page('Events')) echo'class="on"'; ?>><span>Evenemang</span></a></li>
<li><a id="search"><div style="margin: 5px 0px 0px 2px; float:left;">
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<input type="text" name="s" id="s" style="color: #FFFFFF; background: transparent; border-left: 1px solid #888888; border-right: 1px solid #888888; border-bottom: 1px solid #888888; border-top: 2px solid #555555; -moz-border-radius: 25px; -khtml-border-radius: 25px; -webkit-border-radius: 25px; border-radius: 25px;" size="14" />
<input type="hidden" id="searchsubmit" />
</form></div></a></li>
</ul>
</body>

Tanks for all help,
Harald
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put code in loop with instruction for single.php? annsworld Center area post/pages 5 Dec 1, 2012 10:52 PM
WP-Table Reloaded code insert johnnybravo Plugins & Atahualpa 8 May 31, 2011 03:35 AM
Where to insert code for jquery plugins ? twola Header configuration & styling 3 Jan 24, 2010 12:18 AM
Weird Error With Code in Loop as Opposed to index.php adum Post-Kicker, -Byline & -Footer 1 Oct 10, 2009 05:48 AM
Loop Code Displaying Instead of Pages TheInfamousGdub Atahualpa 3 Wordpress theme 6 Aug 27, 2009 09:52 PM


All times are GMT -6. The time now is 10:16 AM.


Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.