buldog52
Forum Replies Created
-
Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Slider works incorrect in mobile mode@media(max-width:767px) { .single-produt__content .nickx-slider-for { padding: 0; } .single-produt__content .nickx-slider-for .nslick-list { min-width: 100%; } }
Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Slider works incorrect in mobile modeThank your for you advice.
My problem was solved by css:
@media(max-width:767px) {
.single-produt__content .nickx-slider-for .nslick-list {
min-width: 100%;
}
}Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Slider works incorrect in mobile modeSir, I disabled the picture tag generation for gallery images.
But I cant remove all our css.one additional thing
https://edmi-com-ua.tesovii.space/product/ergotouch-form-d-fig-9-600-d/
I detect problem when product has 1 slide
if product has 2+ slides – no such problem
See also TOPvision FS Rhodium №2,№6,№7,№8 ? 18,26,28,30 мм (720) – EDMI (tesovii.space)
(Here 3 slides)
- This reply was modified 7 months, 2 weeks ago by buldog52.
Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Slider works incorrect in mobile modeDear NikHiL Gadhiya I need your help again.
Please go to this page
https://edmi-com-ua.tesovii.space/product/ergotouch-form-d-fig-9-600-d/
on your mobile device
I click on element to see slide in fancybox
When I closed image in fancybox, I returns to slide. But Image in slide is bigger then before
Please, advice how to solve this problem. Thanks
Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Slider works incorrect in mobile modeThank you. It works
Thanks for your help. Now I show category title as do_shortcode(‘category_title’);
Breadcrumbs works too
- This reply was modified 9 months ago by buldog52.
In the code on the right side first line – php code, who write category name.
Othe links – JavaScript reads h2 tags, that were formed on by php (acf).It seems here https://cs2-bettings.com/cs2-coinflip on right right side menu menu I need add same code for 1st item om menu
<?php echo apply_filters( 'the_title', $this_title ); ?>
Dear Gaurav Tiwari
I use yoast seo breadcrumbs with some custom code
//This function return primary category for posts (works only with Yoast Seo) function get_post_primary_category($post_id, $term='product_category', $return_all_categories=false){ $return = array(); if (class_exists('WPSEO_Primary_Term')){ // Show Primary category by Yoast if it is enabled & set $wpseo_primary_term = new WPSEO_Primary_Term( $term, $post_id ); $primary_term = get_term($wpseo_primary_term->get_primary_term()); if (!is_wp_error($primary_term)){ $return['primary_category'] = $primary_term; } } if (empty($return['primary_category']) || $return_all_categories){ $categories_list = get_the_terms($post_id, $term); if (empty($return['primary_category']) && !empty($categories_list)){ $return['primary_category'] = $categories_list[0]; //get the first category } if ($return_all_categories){ $return['all_categories'] = array(); if (!empty($categories_list)){ foreach($categories_list as &$category){ $return['all_categories'][] = $category->term_id; } } } } return $return; }
//crumbs add_filter( 'wpseo_breadcrumb_links', 'qr_add_breadcrumb' ); function qr_add_breadcrumb( $links ) { if ( is_singular( 'post' ) ) { $post_id = get_the_ID(); //page number Blog for English language unset($links[1]); //remove the last element $breadcrumb[] = array( 'url' => get_permalink( $post_id ), 'text' => get_the_title( $post_id ), 'allow_html' => '1', ); $post_categories = get_post_primary_category(get_the_ID(), 'category'); $terms = $post_categories['primary_category']; if (get_field('category_short_name', 'category_'.$terms->term_id)) { $cat_title = get_field('category_short_name', 'category_'.$terms->term_id); } else { $cat_title = $terms->name; } $breadcrumb[] = array( 'url' => "/".$terms->slug."/", 'text' => $cat_title, 'allow_html' => '1', ); // Use array_reverse to change the order of elements in the array $reversedArray = array_reverse($breadcrumb); // Use array_map to apply array_reverse to each subarray $reversedArray = array_map('array_reverse', $reversedArray); // Add an element to the associative array of links array_splice( $links, $offset = 1, $length = 0, $reversedArray ); } return $links; }
- This reply was modified 9 months ago by buldog52.
But I use the title of category (with [year]) in many places, for example in breadcrumbs, and I will need do some job to solve problem.
I have such problem on post page https://cs2-bettings.com/is-howl-gg-legit
Hello again
I changed code
<h1><?php echo apply_filters( 'the_title', $this_title ); ?></h1>
And now category shows year [year]. You can see it here
Dear Gaurav Tiwari,
I updated plugin to Version 1.3.6
But category title doesnt show year in shortcode [year]
You can see it herehttps://cs2-bettings.com/cs2-case-opening-sites
Website using custom theme (html + css + js)
I use such code
<?php $this_title = ""; if (is_page()) { $this_title = get_the_title( $page_id ); } if (is_category()) { $cat_id = preg_replace('/\D+/', '', $page_id); $this_title = get_cat_name( $cat_id ); } ?> <h1><?php echo $this_title; ?></h1>
Forum: Reviews
In reply to: [Stars Rating] [stars_rating_avg] is not workDear Fahid.
I want to use this plugin for cpt.I set up it and I want tou use shortcode under h1 title, not in comments.
I put <?php echo do_shortcode(‘[stars_rating_avg]’); ?> to html.
But it doesnt work. WordPress 6.2.2. Could you help me?https://newgame.tesovii.space/review/csgoroll/
- This reply was modified 1 year, 5 months ago by buldog52.