Mr.Lovebucket
Forum Replies Created
-
Hello Hannah,
I managed it by changing the settings of yoast’s breadcrumbs. The pattern stays the same now, no matter on which page you are.
The only issue left is that now the “shop” page always shows up in the breadcrumbs and I wouldn’t want that.But that’s just a minor problem and I mark this topic as resolved.
Thank you
MarkForum: Plugins
In reply to: [Footer Putter] Action hook with slashProblem solved.
I found a way to use the theme’s footer widget.
If anyone is interested in using the Footer Putter with the Virtue theme, here’s how to get it work:
Let’s say you have the 3 column footer activated. Put the Footer Putter widget into the 2nd footer widgetarea and add the following code to your CSS-Box:
.footercol1 { display: none; } .footercol2 { width: 100%; } .footercol3 { display: none; } #containerfooter .menu li a { display: inline; } #footer-credits ul li a:hover { text-decoration: none; }
Now you have one full width responsive footer with the same design as your virtue theme.
Thanks for the quick answer!
If I get it right, all these functions are features not bugs, ok.
I have to think about the option to set it all to woocommerce standard.
I’ll just send an email if I’d like to get the child theme.Oh, btw, virtue is a such a fine theme with a fine support even in the free version, thanks a lot for that!
Best regards
MarkForum: Themes and Templates
In reply to: [Virtue] WooCommerce – single product page – full widthThe whole issue was caused by a folder/file that shouldn’t have been in the child theme. Don’t even remember how it got there…..
With the help of the support team from Kadence Themes problem is solved.
Thanks a lot!
Forum: Themes and Templates
In reply to: [Virtue] WooCommerce – single product page – full widthThanks for your help, but that didn’t solve the problem.
I’ll send a copy of the child theme right now.Mark
P.S.: I set the site back in maintenance mode. Just let me know, if you need any further access to it
Forum: Themes and Templates
In reply to: [Virtue] WooCommerce – single product page – full widthYes, here’s my actual custom functions.php:
<?php // Display PDF invoice as html // add_filter( 'wpo_wcpdf_output_html', '__return_true' ); // add_filter( 'wpo_wcpdf_use_path', '__return_false' ); //Kundenzugang zum Backend unterbinden function restrict_admin() { if ( ! current_user_can( 'manage_options' ) && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { wp_redirect( site_url() ); exit; } } add_action( 'admin_init', 'restrict_admin',1); add_action('wp_head','load_parent_style',0); function load_parent_style() { wp_register_style('parent-theme',get_bloginfo('template_directory').'/style.css'); wp_enqueue_style('parent-theme'); } add_filter( 'woocommerce_subcategory_count_html', 'woo_remove_category_products_count' ); function woo_remove_category_products_count() { return; } // Add downloads tab if attachment is present (no custom icons) /* add_filter( 'woocommerce_product_tabs', 'cg_product_downloads_tab'); function cg_product_downloads_content() { global $woocommerce, $product, $post; $args = array( 'post_type' => 'attachment', 'orderby' => 'menu_order', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID, 'post_mime_type' => array( 'application/pdf','application/vnd.ms-excel','application/msword' ) ); $attachments = get_posts( $args ); if ( $attachments ) { foreach ( $attachments as $attachment ) { echo '<p><a href="'; echo wp_get_attachment_url( $attachment->ID ); echo '">'; echo wp_get_attachment_image( $attachment->ID, '', true ); echo ' '; echo apply_filters( 'the_title', $attachment->post_title ); echo '</a>'; echo '</p>'; } } } function cg_product_downloads_tab($tabs) { $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID, 'post_mime_type' => array( 'application/pdf','application/vnd.ms-excel','application/msword' ) ); $attachments = get_posts( $args ); if ( $attachments ): $tabs['test_tab'] = array( 'title' => __( 'Downloads', 'woocommerce' ), 'priority' => 50, 'callback' => 'cg_product_downloads_content' ); endif; return $tabs; } */ // Adding 'Preis auf Anfrage' add_filter('woocommerce_empty_price_html', 'custom_call_for_price'); function custom_call_for_price() { return 'Preis auf Anfrage'; } /** * Change the add to cart text on single product pages add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); function woo_custom_cart_button_text() { global $woocommerce; foreach($woocommerce->cart->get_cart() as $cart_item_key => $values ) { $_product = $values['data']; if( get_the_ID() == $_product->id ) { return __('Im Warenkorb - Nochmal hinzufügen?', 'woocommerce'); } } return __('Add to cart', 'woocommerce'); } /** * Change the add to cart text on product archives add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' ); function woo_archive_custom_cart_button_text() { global $woocommerce; foreach($woocommerce->cart->get_cart() as $cart_item_key => $values ) { $_product = $values['data']; if( get_the_ID() == $_product->id ) { return __('Im Warenkorb', 'woocommerce'); } } return __('Add to cart', 'woocommerce'); } */ add_filter('gettext', 'translate_text'); add_filter('ngettext', 'translate_text'); function translate_text($translated) { $translated = str_ireplace('Zahlungsmethode', 'Zahlungsweise', $translated); return $translated; } /*REPLACE ADD TO CART BUTTON ON PRODUCT ARCHIVE (SHOP) */ remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); add_action( 'woocommerce_after_shop_loop_item', 'my_woocommerce_template_loop_add_to_cart', 10 ); function my_woocommerce_template_loop_add_to_cart() { global $product; echo '<form action="' . esc_url( $product->get_permalink( $product->id ) ) . '" method="get"> <button type="submit" class="button kad-btn headerfont kad_add_to_cart add_to_cart_button product_type_simple">' . __('Weitere Informationen', 'woocommerce') . '</button> </form>'; } /* Optimize WooCommerce Scripts // Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. */ add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); function child_manage_woocommerce_styles() { //remove generator meta tag remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); //first check that woo exists to prevent fatal errors if ( function_exists( 'is_woocommerce' ) ) { //dequeue scripts and styles if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() ) { wp_dequeue_style( 'woocommerce_frontend_styles' ); wp_dequeue_style( 'woocommerce_fancybox_styles' ); wp_dequeue_style( 'woocommerce_chosen_styles' ); wp_dequeue_style( 'woocommerce_prettyPhoto_css' ); wp_dequeue_script( 'wc_price_slider' ); wp_dequeue_script( 'wc-single-product' ); wp_dequeue_script( 'wc-add-to-cart' ); wp_dequeue_script( 'wc-cart-fragments' ); wp_dequeue_script( 'wc-checkout' ); wp_dequeue_script( 'wc-add-to-cart-variation' ); wp_dequeue_script( 'wc-single-product' ); wp_dequeue_script( 'wc-cart' ); wp_dequeue_script( 'wc-chosen' ); wp_dequeue_script( 'woocommerce' ); wp_dequeue_script( 'prettyPhoto' ); wp_dequeue_script( 'prettyPhoto-init' ); wp_dequeue_script( 'jquery-blockui' ); wp_dequeue_script( 'jquery-placeholder' ); wp_dequeue_script( 'fancybox' ); wp_dequeue_script( 'jqueryui' ); } } } // check for empty-cart get param to clear the cart add_action('init', 'woocommerce_clear_cart_url'); function woocommerce_clear_cart_url() { global $woocommerce; if( isset($_REQUEST['clear-cart']) ) { $woocommerce->cart->empty_cart(); } } // produkt tabs entfernen add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { // unset( $tabs['description'] ); // Remove the description tab // unset( $tabs['reviews'] ); // Remove the reviews tab unset( $tabs['additional_information'] ); // Remove the additional information tab return $tabs; } // preis für variationen mit "ab..." statt "von...bis" darstellen add_filter( 'woocommerce_variable_sale_price_html', 'wc_wc20_variation_price_format', 10, 2 ); add_filter( 'woocommerce_variable_price_html', 'wc_wc20_variation_price_format', 10, 2 ); function wc_wc20_variation_price_format( $price, $product ) { // Main Price $prices = array( $product->get_variation_price( 'min', true ), $product->get_variation_price( 'max', true ) ); $price = $prices[0] !== $prices[1] ? sprintf( __( 'Ab %1$s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] ); // Sale Price $prices = array( $product->get_variation_regular_price( 'min', true ), $product->get_variation_regular_price( 'max', true ) ); sort( $prices ); $saleprice = $prices[0] !== $prices[1] ? sprintf( __( 'Ab %1$s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] ); if ( $price !== $saleprice ) { $price = '<del>' . $saleprice . '</del> <ins>' . $price . '</ins>'; } return $price; } add_filter( 'get_product_search_form' , 'woo_custom_product_searchform' ); /** * woo_custom_product_searchform * * @access public * @since 1.0 * @return void */ function woo_custom_product_searchform( $form ) { $form = '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '"> <div> <input type="text" style="font-family:Lato; padding: 0px 5px;" value="' . get_search_query() . '" name="s" id="s" placeholder="' . __( 'Produktsuche', 'woocommerce' ) . '" /> <input type="submit" class="button" style="font-family:Lato; padding: 3px 5px; margin-left: 10px; margin-top: 0;" value="'. esc_attr__( 'Suchen', 'woocommerce' ) .'" /> <input type="hidden" name="post_type" value="product" /> </div> </form>'; return $form; } // entfernen der doppelten pagination (Sort & Display Plugin) global $wc_psad; remove_action( 'woocommerce_after_shop_loop', array($wc_psad, 'woocommerce_pagination', 10) ); ?>
And this is what’s in the custom css-box:
#containerfooter .menu li a { background: none; } #nav-second ul.sf-menu ul li a { font-size: 12px; } div.product .product_label label { font-size: 12px; text-transform:none; } .customSelect .customSelectInner:before{ font-size: 12px; text-transform: none; } .customSelectInner{ font-size: 12px; text-transform:none; } /* hides the spin-button for firefox */ input[type=number] { -moz-appearance:textfield; } /* hides the spin-button for chrome*/ input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } img.attachment-shop_thumbnail {margin-right:4px;} /* corrects position of delivery address headline */ .woocommerce-page .checkout .col-2 h3 { float: none; } .product_item .kad_add_to_cart { display: inline; } .woocommerce-ordering {display: none}
There are several plugins installed also, but deactivating them doesn’t change anything.
Mark
Forum: Plugins
In reply to: [Product Sort and Display for WooCommerce] Pagination doubleGot the same problem. Solution provided by varfolomejev works like a charm. How’s about pasting the code right here?
Forum: Themes and Templates
In reply to: [Virtue] WooCommerce – single product page – full widthHello Calvin,
yes I’m very well, as long as I don’t have to mess with WordPress and/or WooCommerce ?? – only kidding
here’s the link to the page:
Have a nice day
MarkWorked like a charm!
Thank you very, very much!
MarkI’m using Firefox 33.1 and Win7.
Here’s the screenshot anyway:
https://saunakauf24.de/images/saunakauf24-review-order.pngSure:
just put anything in the cart and go through, step by step, then you can see what the problem is.
Forum: Plugins
In reply to: [NextCellent Gallery - NextGEN Legacy] Cant see images in sort galleryFor the time being (til the next version) this workaround fixed it.
In my case the line numbers were correct.The problem resolved, I forgot to update the gallery database.
Now everything is working again like a charm.Hello, I had the same problem.
Your additional code does help definitely!
My theme acts really responsive now.
Thank you