benpasley
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Email Link BustedDavid, that would require us to set an appointment because I can’t leave up a site wide crappy link for days. It took 4 days to get a word back on this post. If you set a time window, MST, I will turn the baby on, and give you all the access you need!
Forum: Themes and Templates
In reply to: [Customizr] Categories Not Displaying PostsIt was bogus code in index file.
Forum: Themes and Templates
In reply to: [Decode] Search BarIt was content.php and my failure to update to your latest version there. I will work to understand how to “update” little edits into the Child Theme in php pages, and not have to grab the whole thing. Thanks, Scott and members.
Forum: Themes and Templates
In reply to: [Decode] Search BarScott, I have a coder friend who looked at it and wrote this, do you concur?
I think I found the problem. The search results page is actually coming up with results but not displaying them. If you look at the underlying HTML that results from a search, the link results appear but no content is generated for the link to be applied to. Namely, an empty H3 tag that should contain the title of the search result is generated.
Your’e right in that the content.php contains the errors. I’m pretty sure the bolded text below is the culprit. The tag is generating the right content but the h3 and div with .entery-summary class are not. I think this is because they use funky PHP that is not WordPress standard.
Not enough of a programmer to know why you’re guy went this route. Looks like he coded something more complex rather than using the usual hooks available to us. Here’s a more typical search results blog roll I’ve used for search results before. The part I’ve bolded is how the title content is typically generated in WordPress and what I think would be a start to fixing the problem.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class=”blog-roll-div”>
<h3 class=”blog-h3″>“><?php the_title(); ?></h3>
“><?php the_post_thumbnail( ‘thumbnail’ ); ?>
<?php the_excerpt(); ?>
<hr>
</div>Hope that helps.
Forum: Themes and Templates
In reply to: [Decode] Search Bar<?php
/**
* @package Decode
*/
?><?php if ( has_post_format( ‘quote’ ) && get_theme_mod( ‘use_excerpts’, false ) == false && !is_search() ) : ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<div class=”entry-content”><?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘decode’ ) ); ?></div>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘decode’ ), ‘after’ => ‘</div>’ ) ); ?>
<footer class=”entry-meta”>
<?php if (get_theme_mod( ‘enable_comments’, true ) == true ) : ?>
<?php if ( ! post_password_required() && ( comments_open() || ‘0’ != get_comments_number() ) ) : ?>
<div class=”comments-link”><?php comments_popup_link( __( ‘Leave a comment’, ‘decode’ ), __( ‘1 Comment’, ‘decode’ ), __( ‘% Comments’, ‘decode’ ) ); ?></div>
<?php endif; ?>
<?php endif; ?>
<?php edit_post_link( __( ‘Edit’, ‘decode’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
<?php if (get_theme_mod( ‘show_tags’, false ) == true ) : ?>
<p class=”tags”><?php the_tags(__( ‘Tagged as: ‘, ‘decode’ ),’, ‘); ?></p>
<?php endif; ?>
<?php if (get_theme_mod( ‘show_categories’, false ) == true ) : ?>
<p class=”categories”><?php _e( ‘Categorized in: ‘, ‘decode’) . the_category(‘, ‘); ?></p>
<?php endif; ?>
<p class=”date”><?php decode_posted_on(); ?></p>
</footer><!– .entry-meta –>
</article><!– #post-<?php the_ID(); ?> –><?php elseif ( has_post_format( ‘link’ ) && get_theme_mod( ‘use_excerpts’, false ) == false && !is_search() ): ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<header class=”entry-header”>
<?php if ( has_post_thumbnail() ) : ?>
” title=”<?php the_title_attribute(); ?>” >
<?php the_post_thumbnail(); ?>
<?php endif; ?>
<div class=”entry-title”><h2><?php decode_print_post_title() ?><?php if ( get_theme_mod( ‘link_post_title_arrow’, false ) == true ) echo ‘<span class=”link-title-arrow”>→</span>’; ?></h2></div>
<?php if ( get_theme_mod( ‘entry_date_position’, ‘below’ ) == ‘above’ ) : ?>
<div class=”entry-meta above-content”>
<p class=”date”><?php decode_posted_on(); ?></p>
</div><!– .entry-meta –>
<?php endif; ?>
</header>
<div class=”entry-content”><?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘decode’ ) ); ?></div>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘decode’ ), ‘after’ => ‘</div>’ ) ); ?>
<footer class=”entry-meta”>
<?php if (get_theme_mod( ‘enable_comments’, true ) == true ) : ?>
<?php if ( ! post_password_required() && ( comments_open() || ‘0’ != get_comments_number() ) ) : ?>
<div class=”comments-link <?php echo get_theme_mod( ‘enable_comments’, ” ); ?>”><?php comments_popup_link( __( ‘Leave a comment’, ‘decode’ ), __( ‘1 Comment’, ‘decode’ ), __( ‘% Comments’, ‘decode’ ) ); ?></div>
<?php endif; ?>
<?php endif; ?>
<?php edit_post_link( __( ‘Edit’, ‘decode’ ), ‘<div class=”edit-link”>’, ‘</div>’ ); ?>
<?php if (get_theme_mod( ‘show_tags’, false ) == true ) : ?>
<p class=”tags”><?php the_tags(__( ‘Tagged as: ‘, ‘decode’ ),’, ‘); ?></p>
<?php endif; ?>
<?php if (get_theme_mod( ‘show_categories’, false ) == true ) : ?>
<p class=”categories”><?php _e( ‘Categorized in: ‘, ‘decode’ ) . the_category(‘, ‘); ?></p>
<?php endif; ?>
<?php if ( get_theme_mod( ‘entry_date_position’, ‘below’ ) == ‘below’ ) : ?>
<p class=”date”><?php decode_posted_on(); ?></p>
<?php endif; ?>
</footer><!– .entry-meta –>
</article><!– #post-<?php the_ID(); ?> –><?php elseif ( is_search() ): // Only display Excerpts for Search ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
“>
<div class=”entry-title”>
<h3><?php decode_search_title_highlight(); ?></h3>
</div>
<div class=”entry-summary”>
<?php decode_search_excerpt_highlight(); ?>
</div><!– .entry-summary –>
<footer class=”entry-meta”>
<?php edit_post_link( __( ‘Edit’, ‘decode’ ), ‘<div class=”edit-link”>’, ‘</div>’ ); ?>
</footer>
</article><!– #post-<?php the_ID(); ?> –><?php elseif ( get_theme_mod( ‘use_excerpts’, false ) == true && !is_sticky() ) : ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<header class=”entry-header”>
<?php if ( has_post_thumbnail() && get_theme_mod( ‘show_featured_images_on_excerpts’, false ) == true ) : ?>
” title=”<?php the_title_attribute(); ?>” >
<?php the_post_thumbnail(); ?>
<?php endif; ?>
<div class=”entry-title”><h2>“><?php the_title(); ?></h2></div>
<?php if ( get_theme_mod( ‘entry_date_position’, ‘below’ ) == ‘above’ && get_theme_mod( ‘show_entry_date_on_excerpts’, false ) == true ) : ?>
<div class=”entry-meta above-content”>
<p class=”date”><?php decode_posted_on(); ?></p>
</div><!– .entry-meta –>
<?php endif; ?>
</header><!– .entry-header –>
<div class=”entry-summary”>
<?php the_excerpt(); ?>
</div><!– .entry-summary –>
<footer class=”entry-meta”>
“><?php _e(‘Read More…’, ‘decode’); ?>
<?php edit_post_link( __( ‘Edit’, ‘decode’ ), ‘<div class=”edit-link”>’, ‘</div>’ ); ?>
<?php if ( get_theme_mod( ‘entry_date_position’, ‘below’ ) == ‘below’ && get_theme_mod( ‘show_entry_date_on_excerpts’, false ) == true ) : ?>
<p class=”date”><?php decode_posted_on(); ?></p>
<?php endif; ?>
</footer><!– .entry-meta –>
</article><!– #post-<?php the_ID(); ?> –><?php else : ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<header class=”entry-header”>
<?php if ( has_post_thumbnail() ) : ?>
” title=”<?php the_title_attribute(); ?>” >
<?php the_post_thumbnail(); ?>
<?php endif; ?>
<div class=”entry-title”><h2>“><?php the_title(); ?></h2></div>
<?php if ( get_theme_mod( ‘entry_date_position’, ‘below’ ) == ‘above’ ) : ?>
<div class=”entry-meta above-content”>
<p class=”date”><?php decode_posted_on(); ?></p>
</div><!– .entry-meta –>
<?php endif; ?>
</header><!– .entry-header –>
<div class=”entry-content”><?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘decode’ ) ); ?></div>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘decode’ ), ‘after’ => ‘</div>’ ) ); ?>
<footer class=”entry-meta below-content”>
<?php if (get_theme_mod( ‘enable_comments’, true ) == false ) : ?>
<?php if ( ! post_password_required() && ( comments_open() || ‘0’ != get_comments_number() ) ) : ?>
<div class=”comments-link <?php echo get_theme_mod( ‘enable_comments’, ” ); ?>”><?php comments_popup_link( __( ‘Leave a comment’, ‘decode’ ), __( ‘1 Comment’, ‘decode’ ), __( ‘% Comments’, ‘decode’ ) ); ?></div>
<?php endif; ?>
<?php endif; ?>
<?php edit_post_link( __( ‘Edit’, ‘decode’ ), ‘<div class=”edit-link”>’, ‘</div>’ ); ?>
<?php if (get_theme_mod( ‘show_tags’, false ) == true ) : ?>
<p class=”tags”><?php the_tags(__( ‘Tagged as: ‘, ‘decode’ ),’, ‘); ?></p>
<?php endif; ?>
<?php if (get_theme_mod( ‘show_categories’, false ) == true ) : ?>
<p class=”categories”><?php _e( ‘Categorized in: ‘, ‘decode’ ) . the_category(‘, ‘); ?></p>
<?php endif; ?>
<?php if ( get_theme_mod( ‘entry_date_position’, ‘below’ ) == ‘below’ ) : ?>
<p class=”date”><?php decode_posted_on(); ?></p>
<?php endif; ?>
</footer><!– .entry-meta –>
</article><!– #post-<?php the_ID(); ?> –><?php endif; ?>
Forum: Themes and Templates
In reply to: [Decode] Search BarYes, I modded the header, content-page, content-single, footer and content.php files with modest changes for display on the site, nothing huge, but I did copy the entire file to do so.
Forum: Themes and Templates
In reply to: [Decode] Search BarWell, I turned off all plugins, loaded the basic search widget from WP and still the search returns a blank page. You can test it easily enough at my site. My modifications to the theme are all in a Child Theme. The CSS is all single entry mods, but I did copy entire .php pages (like footer.php for instance) when I placed them in the Child Theme because I wasn’t sure how to code those lines otherwise.
Forum: Themes and Templates
In reply to: [Decode] add search barScott, I added this code to my sidebar at benpasley.com, but the search function doesn’t work at all. My browser actually crashed when trying to use it, crazy. I must be doing something terrible. I tried it in the exact location as noted above as well, and neither work. Thanks for your help.
Forum: Themes and Templates
In reply to: [Decode] Align content left in Child Themebam!
Forum: Themes and Templates
In reply to: [Decode] Align content left in Child Themewhoops, that padding: did not work.
Forum: Themes and Templates
In reply to: [Decode] Align content left in Child ThemeSweet! Scott, thanks a ton. I think you have done a great job with the site, and more than awesome in the help department.
Forum: Themes and Templates
In reply to: [Decode] Align content left in Child ThemeFound it, so great. I will leave you alone if you point me to the code title for Date of post above… yes!
Forum: Themes and Templates
In reply to: [Decode] Align content left in Child ThemeBrilliant, I am now seeing a better direction. Thank you. However, the .post .entry-meta command did not move the Comments section to the left margin.
Forum: Themes and Templates
In reply to: [Decode] Align content left in Child ThemeI discovered that something is jacking with my .htaccess file in the site folder and this caused the CSS not to write properly. Probably a plugin, but I have no idea. OK, Scott, I did get that code to left-align the entry title, but I need that title and the comments section to bump left to the same left margin as the body…can you help with code for that?
Forum: Themes and Templates
In reply to: [Decode] Align content left in Child ThemeScott, can you tell me which of the style sheets in the CSS folder in Decode is the one to modify to test a simple change like a entry-header color, for instance?