fatneko
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Modularity Lite 1.3 slideshow only shows 2 imagesupdate:
just found out it only shows featured images from posts that are showing on homepage only.
so once these posts are off the homepage, they are not included in slideshow at all.
what do i need to change, so that it looks for featured images that are 950×425 from all the posts including post that are not on homepage?
<?php if ( $options['slideshow'] != 0 ) : ?> <div id="slideshow"> <?php // Start a new query that looks at all the posts on the home page. $mod_slide = new WP_Query(); $mod_slide->query( 'order=DESC&caller_get_posts=1' ); while ($mod_slide->have_posts()) : $mod_slide->the_post(); // Check to see if the posts have attachments. $attachments = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order')); if ( empty( $attachments ) ) continue; // Set our attachment variable. $first_attachment = ''; // Awesome! We have attachments! Let's grab the first one that's 950px x 425px. foreach ( $attachments as $attachment ) { $image = wp_get_attachment_image_src( $attachment->ID, 'modularity-slideshow' ); if ( $image[1] >= 950 && $image[2] >= 425 ) { $first_attachment = $attachment; break; } } // Cool. Now, if we actually have an attachment, let's pop it into our slideshow. if ( $first_attachment != '' ) { ?> <div class="slide"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php echo wp_get_attachment_image($first_attachment->ID, 'modularity-slideshow' ); ?></a></div> <?php } endwhile; ?> </div><!-- end slideshow -->
Forum: Fixing WordPress
In reply to: css for search buttonthanks!
the theme provides admin area with font selections for most things. and button font is set to Molengo. the choices do not have the font i want to use, so i am using cufon for nav bar and titles right now.
so i am trying to apply it to button fonts also.so the search is inserted to the header.php like this.
<div id="search"> <?php include (TEMPLATEPATH . "/search-form.php"); ?> </div>
and the only custom.css for search is this.
#search { float: right; margin: 0 0 0 0;}
search.php is
<div class="search_main"> <form method="get" class="searchform" action="<?php bloginfo('url'); ?>" > <input type="text" class="field s" name="s" value="<?php _e('Search...', 'storefrontthemes') ?>" onfocus="if (this.value == '<?php _e('Search...', 'storefrontthemes') ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Search...', 'storefrontthemes') ?>';}" /> <input type="submit" class="submit button" name="submit" value="<?php _e('enter', 'storefrontthemes'); ?>" /> </form> <div class="fix"></div> </div>
i tried using ‘#search’ for cufon, but didnt work.
Forum: Themes and Templates
In reply to: removing vertical dashed line in nav bar in storefront themethanks, but would not that eliminate horizontal dashed lines everywhere…?
i do not want to remove horizontal lines under the nav, between sections. i only want to remove vertical lines between the menu text.
Forum: Themes and Templates
In reply to: location of drop-down menugreat, thanks!!!