Tagged: x
-
AuthorPosts
-
November 2, 2016 at 2:32 pm #1241319
codexworksParticipantHi I want to know how will I be able to remove the line between the topbar text and social icon?
Thanks
November 2, 2016 at 5:03 pm #1241502
JoaoModeratorHi There,
Please add the following code to Appereance > Customizer > Custom > CSS
@media (max-width: 767px) { .x-topbar .p-info { border: none; } }If that does not work, please provide your URL.
Hope that helps
Joao
November 4, 2016 at 1:29 am #1243446
codexworksParticipantThis reply has been marked as private.November 4, 2016 at 1:36 am #1243449
FriechModeratorHi There,
You can add this under Custom > Global JavaScript in the Customizer.
(function($) { $( ".single-product .entry-parent" ).attr( "href", "https://www.google.com" ); })(jQuery);Replace
https://www.google.comwith your own URL.Thanks.
November 4, 2016 at 1:50 am #1243456
codexworksParticipantThis reply has been marked as private.November 4, 2016 at 2:27 am #1243487
Paul RModeratorHi,
You can add this under Custom > Edit Global CSS in the Customizer.
.woocommerce div.product .images .x-img { max-width: 200px; margin: 0 auto !important; } .archive.woocommerce li.product img { max-width: 80%; }You may change the max width to adjust the width of the images.
Thanks
November 4, 2016 at 2:30 am #1243491
codexworksParticipantHi. Thanks for the help. Is there anyway to make the link as the previous page? Instead of putting the url?
(function($) {
$( “.single-product .entry-parent” ).attr( “href”, “https://www.google.com” );
})(jQuery);November 4, 2016 at 2:51 am #1243502
Paul RModeratorHi,
Kindly remove the js code then add this in your child theme’s functions.php file.
function x_ethos_entry_top_navigation() { if ( x_is_portfolio_item() ) { $link = x_get_parent_portfolio_link(); } elseif ( x_is_product() ) { if(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER'])) { $link = $_SERVER['HTTP_REFERER']; } else { $link = x_get_shop_link(); } } $title = esc_attr( __( 'See All Posts', '__x__' ) ); ?> <div class="entry-top-navigation"> <a href="<?php echo $link; ?>" class="entry-parent" title="<?php $title; ?>"><i class="x-icon-th" data-x-icon=""></i></a> <?php x_entry_navigation(); ?> </div> <?php }Hope that helps.
November 4, 2016 at 2:13 pm #1244179
codexworksParticipantThanks a lot! Have a nice day!
November 4, 2016 at 2:51 pm #1244232
Prasant RaiModeratorYou are most welcome. 🙂
November 4, 2016 at 3:41 pm #1244287
codexworksParticipantHi! At some point the script for redirection doesn’t work. Is there any other way to solve that? Or Is it posible to remove it? thanks
November 4, 2016 at 11:42 pm #1244710
RadModeratorHi there,
Please remove that code from your child theme. If it’s just about navigating to the previous page, then javascript history feature should be enough 🙂
Please change your javascript to this,
(function($) { $( '.single-product .entry-top-navigation > a' ).on('click', function(e){ e.preventDefault(); window.history.back(); } ); })(jQuery);That should do it, cheers!
November 5, 2016 at 1:03 am #1244734
codexworksParticipantThis reply has been marked as private.November 5, 2016 at 3:59 am #1244836
Rue NelModeratorHello There,
Thanks for the updates! To put the Attributes, number of item and add to cart before the description, please insert this following code in your child theme’s functions.php file.
// Move single product description below the add to cart button // ============================================================================= function move_product_description(){ remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 35 ); } add_action('wp', 'move_product_description'); // =============================================================================Please let us know if this works out for you.
November 5, 2016 at 3:06 pm #1245248
codexworksParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1241319 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
