Home › Forums › WoodMart support forum › Show
Show
- This topic has 8 replies, 2 voices, and was last updated 4 years, 4 months ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
July 27, 2020 at 9:38 am #214492
tcsg.tothParticipantHello,
I’m trying to add the Show summary on hover style to product page but it’s not work somehow. Like the first tile here: https://woodmart.xtemos.com/products-element/
Can you help please?July 27, 2020 at 9:40 am #214495
tcsg.tothParticipantphoto about my settings
Attachments:
You must be logged in to view attached files.July 27, 2020 at 11:40 am #214541
Aizaz Imtiaz AwanKeymasterHello,
I saw the screenshots you attached. Please Go to Theme Settings >> Shop >> Product Styles. And set the hover content to excerpt.
Then Clear cache and check back.
Screenshot for Clarification: https://ibb.co/2jTL5zL
Best Regards.
July 27, 2020 at 9:34 pm #214698
tcsg.tothParticipantDid it but still not working 🙁 Can you help please?
July 28, 2020 at 6:30 am #214749
Aizaz Imtiaz AwanKeymasterHello,
I have logged into your website and deactivated all the third party plugins and the hover content is displaying fine.
Which means it’s not our theme issue, it’s a third party plugin issue.
Screenshot for Clarification: https://ibb.co/nwyG3QF
Please clear cache and check back.
Regard’s.
Xtemos Studio.July 28, 2020 at 9:08 am #214789
tcsg.tothParticipantFound out that PHP widget plugin is the problem. Can you suggest an alternative to how to inject php code to Shop Sidebar which work with your theme?
July 28, 2020 at 9:22 am #214792
tcsg.tothParticipant(the plugin is not conflicting, just after I put the php code to the widget)
July 28, 2020 at 9:37 am #214799
tcsg.tothParticipantmy php code:
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js”></script><div>
<?php $var = get_terms(array(
‘taxonomy’ => ‘category’,
‘parent’ => 215,
‘hide_empty’ => true,));?>
<select class=”foselect”>
<option value=”” disabled selected>Válassz márkát</option>
<?php
foreach($var as $marka) { ?>
<option data-name=”<?php echo $marka->slug; ?>” value=”<?php echo $marka->id; ?>”><?php echo $marka->name; ?></option>
<?php
}
?>
</select><?php
foreach($var as $i => $marka) { ?>
<select class=”autoselect” id=”<?php echo $i;?>_tipus” data-marka=”<?php echo $marka->slug; ?>”>
<option value=”” disabled selected>Válassz modellt</option>
<?php
$techs = new WP_Query(
array(
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => -1,
‘orderby’ => ‘title’,
‘order’ => ‘ASC’,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘category’,
‘field’ => ‘slug’,
‘terms’ => $marka,
‘operator’ => ‘IN’,
),
)
)
);if ( $techs->have_posts() ) :
while ( $techs->have_posts() ) : $techs->the_post(); ?>
<?php if(empty(get_field(‘select_name’))) { ?>
<option data-link=”<?php the_permalink(); ?>” value=”<?php the_permalink(); ?>”><?php the_title(); ?></option>
<?php
} else { ?>
<option data-link=”<?php the_permalink(); ?>” value=”<?php the_permalink(); ?>”><?php the_field(‘select_name’); ?></option>
<?php
} ?><?php
endwhile;
wp_reset_postdata();
endif; ?>
</select>
<?php
}
?>
</div>
<script>$( document ).ready(function() {
$(“select option”).prop(“selected”, false);
$(‘.foselect’).val(”);
$(‘.autoselect’).val(”);
});$(‘.autoselect’).hide();
$(‘#0_tipus’).show();$(‘.foselect’).change(function(){
$(‘.autoselect’).hide();
var marka = $(this).find(‘:selected’).data(‘name’);
$(select[data-marka='${marka}']
).show();
});$(‘.autoselect’).change(function(){
var link = $(this).find(‘:selected’).data(‘link’);
window.location = link;
});</script>
July 28, 2020 at 10:54 am #214825
Aizaz Imtiaz AwanKeymasterHello,
Sorry but we could not help you with this because you are asking for core files customization and this is beyond our limitations and support policy.
Regard’s.
Xtemos Studio. -
AuthorPosts
- You must be logged in to create new topics. Login / Register