koreill1
Forum Replies Created
-
Forum: Plugins
In reply to: [Perfect Images] Theme is referencing it's own generated imagesI found a way to turn off the auto-generation on my theme. It’s working great now, thank you!
Forum: Plugins
In reply to: [Advanced AJAX Page Loader] Loader with variable div, page IDI realized that I should be using my index.php file. The loader is still stuck, however. When I click “Older posts” the loading graphic just spins forever without loading the next post. The URL is changed though to the URL of the older post.
Can anyone tell me what Content Element ID I should be using? My code index.php code is below:
<?php /** Themify Default Variables * @var object */ global $themify; ?> <!-- layout-container --> <div id="layout" class="clearfix"> <?php themify_content_before(); //hook ?> <!-- content --> <div id="content" class="clearfix"> <?php themify_content_start(); //hook ?> <?php ///////////////////////////////////////////// // Author Page ///////////////////////////////////////////// ?> <?php if(is_author()) : ?> <?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); $author_url = $curauth->user_url; ?> <div class="author-bio clearfix"> <p class="author-avatar"><?php echo get_avatar( $curauth->user_email, $size = '48' ); ?></p> <h2 class="author-name"><?php _e('About','themify'); ?> <?php echo $curauth->first_name; ?> <?php echo $curauth->last_name; ?></h2> <?php if($author_url != ''): ?><p class="author-url"><a href="<?php echo $author_url; ?>"><?php echo $author_url; ?></a></p><?php endif; //author url ?> <div class="author-description"> <?php echo $curauth->user_description; ?> </div> <!-- /.author-description --> </div> <!-- /.author bio --> <h2 class="author-posts-by"><?php _e('Posts by','themify'); ?> <?php echo $curauth->first_name; ?> <?php echo $curauth->last_name; ?>:</h2> <?php endif; ?> <?php ///////////////////////////////////////////// // Search Title ///////////////////////////////////////////// ?> <?php if(is_search()): ?> <h1 class="page-title"><?php _e('Search Results for:','themify'); ?> <em><?php echo get_search_query(); ?></em></h1> <?php endif; ?> <?php ///////////////////////////////////////////// // Date Archive Title ///////////////////////////////////////////// ?> <?php if ( is_day() ) : ?> <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'themify' ), get_the_date() ); ?></h1> <?php elseif ( is_month() ) : ?> <h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'themify' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'themify' ) ) ); ?></h1> <?php elseif ( is_year() ) : ?> <h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'themify' ), get_the_date( _x( 'Y', 'yearly archives date format', 'themify' ) ) ); ?></h1> <?php endif; ?> <?php ///////////////////////////////////////////// // Category Title ///////////////////////////////////////////// ?> <?php if(is_category() || is_tag() || is_tax() ): ?> <h1 class="page-title"><?php single_cat_title(); ?></h1> <?php echo $themify->get_category_description(); ?> <?php endif; ?> <?php ///////////////////////////////////////////// // Default query categories ///////////////////////////////////////////// ?> <?php if( !is_search() ): ?> <?php global $query_string; query_posts( apply_filters( 'themify_query_posts_args', $query_string.'&order='.$themify->order.'&orderby='.$themify->orderby ) ); ?> <?php endif; ?> <?php ///////////////////////////////////////////// // Loop ///////////////////////////////////////////// ?> <?php if (have_posts()) : ?> <!-- loops-wrapper --> <div id="loops-wrapper" class="loops-wrapper <?php echo $themify->layout . ' ' . $themify->post_layout; ?>"> <?php while (have_posts()) : the_post(); ?> <?php if(is_search()): ?> <?php get_template_part( 'includes/loop','search'); ?> <?php else: ?> <?php get_template_part( 'includes/loop','index'); ?> <?php endif; ?> <?php endwhile; ?> </div> <!-- /loops-wrapper --> <?php get_template_part( 'includes/pagination'); ?> <?php ///////////////////////////////////////////// // Error - No Page Found ///////////////////////////////////////////// ?> <?php else : ?> <p><?php _e( 'Sorry, nothing found.', 'themify' ); ?></p> <?php endif; ?> <?php themify_content_end(); //hook ?> </div> <!-- /content --> <?php themify_content_after() //hook; ?> <?php ///////////////////////////////////////////// // Sidebar ///////////////////////////////////////////// if ($themify->layout != "sidebar-none"): get_sidebar(); endif; ?> </div> <!-- /layout-container --> <?php get_footer(); ?>
Forum: Themes and Templates
In reply to: wp_nav_menu horizontal CSSok, I took your advice, and I’m a step closer. I now have the menu in-line, by making updates nav ul li:
#nav ul li{ display: block; float: left; <strong> clear: right;</strong> margin: 0; padding: 0; <strong> width: auto; </strong> height: auto; line-height: 100%; overflow: hidden; white-space: normal; }
Now I’m having the problem where the menu options are squished together:
HomeStoreShopping CartArchives
But if I set width above to anything except auto, the options are listed vertically again
Home
Store
Shopping Cart
ArchivesForum: Themes and Templates
In reply to: wp_nav_menu horizontal CSSThanks, but I tried your suggestion and I still can’t get it to work. If wp_nav_menu has it’s own ul and li tags, how do I adjust the css for those to make it float:left?
Forum: Themes and Templates
In reply to: wp_nav_menu horizontal CSSMy CSS can be found here: