Devin J Dawson
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] get_product_search_form not workingThank you for your feedback. It seems that a plugin has corrupted the database and I have to start from scratch. I appreciate your help, sorry for the misunderstanding.
Forum: Themes and Templates
In reply to: [Customizr] get_product_search_form not workingIt seems the information you posted is probably applicable, but i do not know where to apply it within the
index.php. Previously i was just adding the function in the linked article, but i see now that I had to edit the index as well. The example they use are for separate index, search, and archive files. With customizr, I believe there is only the index.In that case, what do I need to edit in the index file to make it so it applies the
<?php get_template_part('woocommerce/archive', 'product'); ?>to the search and archives templates?Forum: Themes and Templates
In reply to: [Customizr] get_product_search_form not workingThanks for getting back to me again.
I tried adding this function but it does nothing.
My worry is that for most plugins that work with woocommerce, I need to be using the
archive-product.phptemplate itself.In that case, i was wondering if there was a function that works like, “if there is an archives page, then use /woocommerce/archive-product.php” as it’s template,” or, “if there is a search page, then use /woocommerce/archive-product.php as it’s template.”
Directly altering my index.php file does not necessarily improve the situation.
Forum: Themes and Templates
In reply to: [Customizr] get_product_search_form not workingwoocommerce/templates/archive-product.phpis what I am trying to replicate. I would like all search results to look like this.Forum: Themes and Templates
In reply to: [Customizr] get_product_search_form not workingI misunderstood the purpose of the snippet. You are correct.
What i am interested in doing is altering the results page. When I type in a search , I want the results to display how the “Shop” (Home) page looks, not how the “Recent Posts” page looks. Currently, when you search a term, the results look like recent posts instead of products.
k thx boo boo
Forum: Plugins
In reply to: [ReCaptcha Integration for WordPress] Recaptcha not verifiedany fix for this? It doesn’t happen on all of my sites
#fancybox-content .tc-header { display: none; } #fancybox-content #footer { display: none; } #fancybox-title-float-main { display: none; }to name a few..
Forum: Themes and Templates
In reply to: [Customizr] Make entry-titles on recent posts page linkableI wasn’t asking the correct question. This is a non-issue.
I am also interested in seeing how this works. I am having problems writing hooks to display custom field data.
Forum: Themes and Templates
In reply to: [Customizr] Display Post in a LightboxTo display post in a fancybox (same thing as lightbox):
Add
class="grouped_elements"to your link code, ie.,<a class="grouped_elements" href="http://example.com/post" title="example.com/post" >example.com/post</a>Forum: Themes and Templates
In reply to: [Customizr] Display Post in a LightboxThis is the current code i came up with. I specifically want to show post listed in the recent posts grid in a light box.
add_filter('__grid_single_post_content', 'tc_grid_display_post_link'); function tc_grid_display_post_link(){ if ( ! apply_filters( 'tc_grid_display_post_link' , true ) ) return; printf( '<a class="tc-grid-bg-link" href="%1$s" title="%2$s" rel="tc-fancybox-group1"></a>', get_permalink( get_the_ID() ), esc_attr( strip_tags( get_the_title( get_the_ID() ) ) ) ); }Forum: Themes and Templates
In reply to: Display meta information on the post layout in post listsSome code I am messing with for making entry-titles linkable:
function tc_grid_set_expanded_post_title( $_html ){ if ( ! $this -> tc_force_current_post_expansion() ) return $_html; global $post; $_title = apply_filters( 'tc_grid_expanded_title' , $post->post_title ); $_title = apply_filters( 'tc_the_title' , $_title ); $_title = apply_filters( 'tc_grid_expanded_title_html', $linkvalue = get_post_meta($post->ID, 'affiliate_link', true); if($linkvalue) { sprintf('<h2 class="entry-title"><a href="' . $linkvalue . '" rel="bookmark">%1$s</a></h2>', $_title ) ); } else { sprintf('<h2 class="entry-title">%1$s</h2>', $_title ) ); } return $_html . $_title; }
Noteaffiliate_linkwould take the place ofitem_linkmentioned in the original post.Forum: Themes and Templates
In reply to: [Customizr] Format entry-summary text on recent post pageEnable “Custom Excerpt” in “Screen Options”, located near the top of the page when you are editing a post. A new field will open toward the bottom. HTML works.
Pats myself on the back
Hello? Is anybody out there?