sdcr
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: previous_post_link arrow positionThanks! you are right.
<?php previous_post_link( ‘%link’, ‘<span class=”meta-nav”>’ . _x( ‘←’, ‘Previous post link’, ‘twentyten’ ) . ‘</span> %title’ ); ?>
But it looks quite messy, so what is the code we really need?
Also I noticed in the new theme, the ‘twentyten’ appears in so many places. What is it for? Does it really need to be there?
Can anybody explain what is “. _x” for as well please?
Forum: Fixing WordPress
In reply to: if is not page id checkthat works 🙂 thanks!
Forum: Themes and Templates
In reply to: How to Add Facebook Share to Index.phpIt is possible, you can do it by adding a tag “share_url=”
share_url=”<?php the_permalink();?>” href=”http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>”>Share
<script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>That’s it!
Forum: Themes and Templates
In reply to: how to include searchform.phpHere I found another issue:
What if the <?php get_search_form();?> has been used 2 times on a page (e.g. the hform not only in sidebar but also in main content in 404.php)
So, there will be problems with the ID tags, W3C doesn’t allow using a same ID name more than 1 time on a page.
I can copy the code from searchform.php and give some new ID names but it’s not so convenient if add it to few pages.
Any better solution please?
Forum: Themes and Templates
In reply to: how to include searchform.phpthnanks esmi, that was beautiful!
Forum: Themes and Templates
In reply to: how to include searchform.phpyou are right esmi, but we may want to custom it for the styling.
Forum: Themes and Templates
In reply to: how to include searchform.phpyes it works, i was thinking that as well just want to make sure.
thanks