omorchoe
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Odd meta tag problemsI don’t know. Seems to be gone now. Which is really odd. But I am not complaining, so, never mind.
Forum: Fixing WordPress
In reply to: Odd meta tag problemsnobody? 🙁
Forum: Themes and Templates
In reply to: Can't get Dynamic Menu Highlighting to workYes, I checked the html source several times and it’s just empty where the variable should show up.
<style type="text/css"> # { background:url("./images/sprites.png") no-repeat; height: 30px; width: 100px } </style>I am trying to style the position of the background-image, so that the menu item looks different when you are on the page that menu item otherwise would lead to (If it should work, I will add some more variables and totally disable the button of the current page).
The link itself is just a transparent gif, re-sized to the size of the button, which is just the background image, that changes if you hover over it with mouse.I am working on xampp and can’t provide a live view.
This would be an example of how the buttons are styled in the css:
#menu-icon-01 { background:url("./images/sprites.png") -202px -113px no-repeat; height: 30px; width: 100px } #menu-icon-02 { background:url("./images/sprites.png") -303px -113px no-repeat; height: 30px; width: 100px } #menu-icon-03 { background:url("./images/sprites.png") -404px -113px no-repeat; height: 30px; width: 100px } #menu-icon-01 a:hover { background:url("./images/sprites.png") -202px -144px no-repeat; height: 30px; width: 100px } #menu-icon-02 a:hover { background:url("./images/sprites.png") -303px -144px no-repeat; height: 30px; width: 100px } #menu-icon-03 a:hover { background:url("./images/sprites.png") -404px -144px no-repeat; height: 30px; width: 100px }I tried to find php hooks I might use in my header, instead of the default WP ones, to use in conditional tags, but couldn’t find any. My coding abilities are sadly not good enough to make my own out of your code. So I won’t be able to use conditionals to show login/register/connect of SFC. Seems like I need to find another FB-connecter that allows a little bit more control where it is added in the theme.
thanks anyway.
Forum: Fixing WordPress
In reply to: Author does not appear on latest postok, I seem to have found the problem…
I managed it in the main index, by moving
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>`
above the info-block.But in my archives, its not that easy…
<?php get_header(); ?> <?php get_sidebar(); ?> <div class="main_cent"> <div class="co_name_bg"> <div class="boxalign1"> <div class="datebox"><?php the_time('m jS, Y') ?></div> </div> <div class="boxalign2"><div class="titlebox"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></div></div> <div class="boxalign3"><div class="quotebox"><? include("/www/htdocs/w009de8a/front/randomquote/randomquote.php"); ?></div></div> <div class="boxalign4"><div class="autorbox">Author: <?php the_author(); ?></div></div> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:7px; height:1px"/> </div> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:100px; height:154px"/> <div class="zindexlow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/headers/<?php echo(rand(1,66)); ?>.png" width="583" height="184" /> </div> <?php if (have_posts()) : ?> <?php $warptext = false; ?> <?php while (have_posts()) : the_post(); ?> <?php if($warptext) {?> <div class="wrapit"> <div class="dateboxA"><?php the_time('m jS, Y') ?></div> <div class="titleboxB"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></div> <div class="autorboxC">Author: <?php the_author(); ?></div> </div> <?} ?> <?php $warptext = true; ?> <div class="content_txt"> <?php the_content('Read the rest of this entry »'); ?><br /><br /> </div> <div class="buttonbox"> <a href="<?php comments_link(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/commentbutton.png" border="0" alt="" /></a> <div class="buttontext"><a href="<?php comments_link(); ?>"><?php comments_number('0', '1', '%', 'number'); ?></a> </div> </div> <?php endwhile; ?> <?php else : ?> <div class="content_txt" style="padding:13px 10px 10px 3px; line-height:1.31em "> <h2>Not Found</h2><br /> <p class="center">Sorry, but you are looking for something that isn't here.</p><br /> </div> <?php endif; ?> <?php previous_post()?> <?php next_post()?> </div> <div class="right_1"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:51px; height:1px"/></div> </div> </div> <div class="footer"> <div class="footer_txt"> </div></div> </div> </div></div> </body> </html>This is my archive loop.
There is a special part “warptext” which allows me to have a graphic-heading above every post, except the first one. Works like a charm, except for the author thing.
The funny part is, that title and post date don’t mind being outsite the
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>`
part.I am confused…
Forum: Themes and Templates
In reply to: Qestion: How to add graphic heading between posts?Ok, now I need to take it a little step further…
In essence its very similar. Its still some graphic between posts, but now there are two different graphics, one after every other post and none at the top…
Like:
_____________ | | | Top Heading | |_____________| [FIRST POST] texttexttexttext _______________ | Post HeadingA | |_______________| [Second POST] texttexttexttext _______________ | Post HeadingB | |_______________| [Third POST] texttexttexttext _______________ | Post HeadingA | |_______________| [Second POST] texttexttexttext _______________ | Post HeadingB | |_______________| [Third POST] texttexttexttextetc…
Maybe you got an idea for that too haochi?
Forum: Themes and Templates
In reply to: Need help: No more home.php since 2.5?can’t find it anymore…
maybe someone changed it allready?
If I happen to stumple over it again, I’ll let you know.Forum: Themes and Templates
In reply to: Qestion: How to add graphic heading between posts?thanks a lot!
works perfect!Here a fast wrap-up for other code-dylsexic like me out there
<?php if (have_posts()) : ?> add <?php $haochi = false; ?> <?php while (have_posts()) : the_post(); ?> <?php if($haochi){?> // insert the CONDITIONAL stuff in here. Like I did with the graphics <?} ?> // here should be the standard loop-thing like: <?php the_content ('Read the rest of this entry »'); ?> <?php $haochi = true; ?> <?php endwhile; ?>Thanks haochi!
Forum: Themes and Templates
In reply to: Need help: No more home.php since 2.5?Thanks!
Seem to work.
Someone should change the codex accordingly. In the template hirarchy it says, it doesn’t work anymore…Forum: Fixing WordPress
In reply to: Q: Renaming “Categories” in Sidebarworks now, thanks 🙂
Forum: Fixing WordPress
In reply to: Q: Renaming “Categories” in SidebarI am using Widget which is why i can’t change it in sidebar.php
but renaming the Category-widget does nothing to it…
as you can see it still says Categories, althought i changed the title of the widget to “Index”…