marekduse
Forum Replies Created
-
In wordpress 6.4.2 and woocommerce 8.5.2 version is exactly the same.
Forum: Plugins
In reply to: [Popular Posts by Webline] Exclude pinned postsOK i found it:
In hook.php find line 278-297 and replace to this code:
if($sort_by == "Comments") { $args = array( 'post_type' => $select_posttype, 'posts_per_page'=> $no_posts, 'orderby' => 'comment_count', 'order' => 'DESC', 'ignore_sticky_posts' => 1, ); } else { $args = array( 'post_type' => $select_posttype, 'posts_per_page'=> $no_posts, 'meta_key' => 'wli_pp_post_views_count', 'orderby' => 'meta_value_num', 'ignore_sticky_posts' => 1, ); }
Thanks a lot. It is working properly now.
In addition, for tpl: cart-template-1-wide.php
If you set the class .cuw-product-section then the elements will be responsive:
.cuw-product-section { flex-wrap: wrap; }
If you set the minimum width of the image then it will display on mobile devices:
.cuw-offer .cuw-product-image img, .cuw-product .cuw-product-image img { min-width: 80px; }
If you set the div referring to the title to a minimum width of, say, 200px then it will be more readable:
<div style="flex: 3; padding: 10px 0;min-width:200px;"> <h4 class="cuw-product-title..........................rest unchanged </div>
The whole refers to the upsell placed in the cart.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Product Gallery not WorkingOk I know now – plugin WooCommerce Additional Variation Images blocked display gallery properly
Thank you
I solved the problem! I have installed the WP All Import Acf Add-On
Okk I get it from this function:
function gallery_n_id($post_id, $att_id, $filepath, $is_keep_existing_images = '') { // The custom field used for the gallery. $key = '_gallery'; // Retrieve existing gallery values. $gallery = get_post_meta($post_id, $key, TRUE); // If gallery is empty declare a new array. if (empty($gallery)) { $gallery = array(); } // Check if the image is in the gallery. if (!in_array($att_id, $gallery)) { // If not, add it. $gallery[] = $att_id; // Save the new gallery. update_post_meta($post_id, $key, $gallery); } } add_action('pmxi_gallery_image', 'gallery_n_id', 10, 4);
But when I take the import: in the editing of the entry, the pictures appear but not on the page.
This is code on website to show gallery:
<?php $images = get_field('gallery'); ?> <?php if($images):?> <div class="gallery1"> <?php foreach( $images as $image):?> <a href="<?php echo $image['sizes']['large'];?>" rel="lightbox"><img src="<?php echo $image['sizes']['thumbnail'];?>" alt="<?php echo $image['alt'];?>" class="gallery2"></a> <?php endforeach;?> </div> <?php endif;?>
Another thing. I would like the featured image not to be displayed in the gallery.
Featured image: <obrazek>
Gallery images: <foto0> <foto1> <foto2> <foto3> <foto4> <foto5>How to do it?
- This reply was modified 3 years, 12 months ago by marekduse.
Strange things. I was able to fix it.
I didn’t get a quick response here. I decided to install the Yoast SEO plugin.
The new plugin did not transfer my settings from RankMath. I decided to disable Yoast SEO and re-enable RankMath. I saved the sitemap settings again. I saved the permalinks settings again.
I cleared the cache and sent the sitemap again.
Google read the sitemape correctly.
Something in wordpress must have blocked my sitemap. Perhaps would help only off RankMath and re-enabled.
Greetings,
Marek- This reply was modified 4 years, 11 months ago by marekduse.