jknetdesign
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Avoid p tags from wrapping a strong tagResloved
Forum: Themes and Templates
In reply to: Avoid p tags from wrapping a strong tagI’ll go with no margins on this page. Thank you.
Forum: Themes and Templates
In reply to: Avoid p tags from wrapping a strong tag<strong>Friday, April 12, 2013</strong> <h4>San Francisco's Exploratorium: Opening Gala</h4>
Forum: Themes and Templates
In reply to: Avoid p tags from wrapping a strong tagRight click is activated now. The second paragraph is a good example.
Friday, April 12, 2013
<h4>San Francisco’s Exploratorium: Opening Gala</h4>I could tighten up the h4 to the strong but I can’t just tell the client to go into the HTML to do this.
Forum: Themes and Templates
In reply to: Display 1 recent post from each categoryCanI see an example of the plugin in action?
Forum: Themes and Templates
In reply to: Display 1 recent post from each category<?php /** * Template Name: First Post Category * * This template display the first post from each selected category. * */ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <!-- Latest from Each Category (add your own use commas to separate) --> <?php query_posts( array('category_name'=>"IconoCraft, Poetry, Opinion, Karma, Zen Shin Progress", 'showposts'=>5, 'order'=>DESC) ); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!-- Entry Title --> <div class='cat-entry'> <header class="entry-header"> <?php if ( is_single() ) : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php else : ?> <? $cats = wp_get_post_categories($post->ID); $cat_name = 'Unknown'; if($cat = array_shift($cats)) { $cat = get_category($cat); $cat_name = $cat->name; } ?> <h2 class="archive-title"><?php printf( __( 'Featured Post: %s', 'twentytwelve' ), '<span>' . $cat_name . '</span>' ); ?></h2> <div class='cat-entry-thumb'><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail('excerpt-thumbnail', 'class=alignleft'); ?></a></div> <h1 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> </h1> <?php endif; // is_single() ?> </header><!-- .entry-header --> <!-- Entry Content --> <div class="entry-content"> <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php if ( comments_open() ) : ?> <div class="comments-link"> <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> </div><!-- .comments-link --> <?php endif; // comments_open() ?> </div> <?php endwhile; ?> <?php endif; ?> <!-- End of Category Display --> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Themes and Templates
In reply to: Display 1 recent post from each categorySure ill send it when I return.
Not sure why this was resolved.
Also not sure what you mean when you say “change and update the scripts in 1.8.0”. Is this an instruction, or something you did, or something that you’re going to do?
Also, excuse me if there’s recent postings on this I didn’t see, but I did extensive testing and here’s what I concluded:
- In the Text box in Settings I added <div id=”countdown”></div> to give output to the jQuery.
- The seconds count down in Safari and Firefox but not in Chrome or IE.
Forum: Themes and Templates
In reply to: [Responsive] turnkey or foundationGotcha, thank you so much.
Forum: Themes and Templates
In reply to: [Responsive] turnkey or foundationAre you saying I can download a child theme for the Responsive theme?
I usually create a child theme, but I’d like to see what you’re talking about. Do you have a more specific link?Forum: Themes and Templates
In reply to: Display 1 recent post from each categoryThank you so much.
I have built a page template with the proper code to achieve this functionality, but I definitely saved your plugin.Let me know if you’re interested in my page template.
Forum: Themes and Templates
In reply to: Do not display uncategorized postsGot it thanks!
Forum: Themes and Templates
In reply to: Twentytwelve child proper increased wrapper margins or paddingYour last paragraph was helpful. Otherwise I’m familiar with the box model but I try to practice proper CSS and wanted to start off on the right foot to avoid rearranging CSS later on. The borders are temporary for this discussion. You think I can just add left margin to secondary and right margin to primary?
Forum: Themes and Templates
In reply to: [Oenology] remove 'view/hide' from sidebarIt worked but what confuses me is the first step, when I cut the function from widgets.php, because what happens when an update replaces this file?
Here’s what I have:
This function is not in widgets.php, it’s in custom.php at the bottom — in the main theme.function oenology_showhide_widget_content_open() { $options = oenology_get_options(); $showhide = '<span class="showhide">'; $showhide .= 'Click to '; $showhide .= '<span style="color:#5588aa;" onclick="d=this.parentElement.nextElementSibling; d.style.display==\'none\' ? d.style.display=\'block\' : d.style.display=\'none\';">view/hide</span>'; $showhide .= '<br /></span>'; $showhide .= '<div class="widget-inner" style="display:' . $options['widget_display_default_state'] . ';">'; return apply_filters( 'oenology_showhide_widget_content_open', $showhide ); } function oenology_showhide_widget_content_close() { return apply_filters( 'oenology_showhide_widget_content_close', '</div>' ); }
Then I have this in the functions.php — child theme
add_filter( 'oenology_showhide_widget_content_open', '__return_false' ); add_filter( 'oenology_showhide_widget_content_close', '__return_false' );
Is this correct?