Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1241319
    codexworks
    Participant

    Hi I want to know how will I be able to remove the line between the topbar text and social icon?

    Thanks

    #1241502
    Joao
    Moderator

    Hi 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

    #1243446
    codexworks
    Participant
    This reply has been marked as private.
    #1243449
    Friech
    Moderator

    Hi 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.com with your own URL.

    Thanks.

    #1243456
    codexworks
    Participant
    This reply has been marked as private.
    #1243487
    Paul R
    Moderator

    Hi,

    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

    #1243491
    codexworks
    Participant

    Hi. 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);

    #1243502
    Paul R
    Moderator

    Hi,

    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.

    #1244179
    codexworks
    Participant

    Thanks a lot! Have a nice day!

    #1244232
    Prasant Rai
    Moderator

    You are most welcome. 🙂

    #1244287
    codexworks
    Participant

    Hi! 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

    #1244710
    Rad
    Moderator

    Hi 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!

    #1244734
    codexworks
    Participant
    This reply has been marked as private.
    #1244836
    Rue Nel
    Moderator

    Hello 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.

    #1245248
    codexworks
    Participant
    This reply has been marked as private.
  • <script> jQuery(function($){ $("#no-reply-1241319 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>