kz
Forum Replies Created
-
Forum: Themes and Templates
In reply to: sections still appear in sidebarNew code is right, but style.css of your site is not updated.
display:none is still not specified.Forum: Themes and Templates
In reply to: sections still appear in sidebarUse pastebin for huge chunk of the code.
Forum: Fixing WordPress
In reply to: Widget Problemsthe old stuff is still there
Because you dont remove the code that output the old stuff.
/* write here original sidebar contents,
means:
If you want to show the old stuff when no widgets are specified,
replace ‘/* write here original sidebar contents, or keep nothing */’ with the code that output the old stuff.or keep nothing */
means:
If you DONT want to show the old stuff anyway,
delete ‘/* write here original sidebar contents, or keep nothing */’ or dont edit the comment.If you are confused, pls show your sidebar.php. I will fix it.
Forum: Fixing WordPress
In reply to: How to change font in Pages widget?Show your Site url or HTML or PHP code.
Or if you know the ID or class name of sub-pages element,
add this into style.css:
.your-sub-page-class{font-size:.8em;}// you can also specify px or pt
or
#your-sub-page-id{font-size:.8em;}// you can also specify px or ptForum: Fixing WordPress
In reply to: Widget ProblemsI think your theme not support dynamic sidebar.
Try this into sidebar.php<div id="sidebar"> <ul> <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?> /* write here original sidebar contents, or keep nothing */ <?php endif; ?> </ul> </div>Forum: Themes and Templates
In reply to: how to set image max in media pages? help!Add this into functions.php:
function my_upload_size_limit($min_bytes, $u_bytes, $p_bytes){ return 1024;// bytes you want } add_filter('upload_size_limit', 'my_upload_size_limit', 10, 3);Forum: Themes and Templates
In reply to: Default theme – how do I get rid of the blue flash?In functions.php, comment out this:
add_action('wp_head', 'kubrick_head');Forum: Themes and Templates
In reply to: Top menu / Navbar breaks into new linePls show your url or PHP code.
Forum: Themes and Templates
In reply to: Changing the dotted line in the news title to a solid or noneRefresh your page until new style affects.
Forum: Themes and Templates
In reply to: Custom Post Summary & Read More!For example: replacing text with image.
<?php the_content('<span class="moretext">Read More</span>'); ?>
style.css:a .moretext{ display:block; text-indent:-9999px; overflow:hidden; background:url(images/readmore.png) left center no-repeat; }Forum: Themes and Templates
In reply to: Archives Navigation Link Not Working in Depo Masthead ThemeSET %postname%, NOT %postnames%
Forum: Themes and Templates
In reply to: Archives Navigation Link Not Working in Depo Masthead ThemeCodex:Function Reference/get year link
My code worked fine.
See ‘To catalytica:’ section on my site http://wpxtreme.jp/archivesI think your something mistake lead the page broken.
For Example, did you close A tag by using</a>?Forum: Themes and Templates
In reply to: 5 Latest Posts??Picture-1.png attached/linked to “New Tech Site Could Beat Them All?”, but it shown in “Fairly Long Title To See If Share Buttons Move Move Move”.
This mean your images have been uploaded, but not attached/linked to the post that you want to show.
So, you must get information of IMG tag in each post, not attached/linked image.
Try this:query_posts('showposts=5'); // recent 5 posts while(have_posts()) : the_post(); ?><div class="my-post"><?php global $post; if(preg_match_all('@wp-image-([0-9]+)@i', $post->post_content, $ids)){ foreach($ids[1] as $id){ echo wp_get_attachment_image($id, array(50/* width */,20 /* height */), false, array('class' => 'my-image')); // break; // if this loop breaks, only one image is shown } } echo '<a href="' . get_permalink() . '">' . get_the_title() . '</a>'; ?></div><?php endwhile; wp_reset_query();Forum: Themes and Templates
In reply to: 5 Latest Posts??No, pls show the screenshot of admin panel/media library.
And pls show your site URL or HTML code of some posts that include IMG tag, if it is possible.I think that each post have IMG tag indicates the same image.
Forum: Themes and Templates
In reply to: WordPress homeUse this:
<body <?php body_class(); ?>>BODY has class realated with current page.
If the page is home, body has ‘home’ class,
so you can specify some styles like:
body.home{background-color:blue;}