Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1132886
    iRocketdesign
    Participant

    I used the following code in my child theme _topbar.php to get the cart to the top bar. Now I want to move it over to the right side just to the left of the social media icons. See attached pic.

    thanks,
    Rick

    <?php

    // =============================================================================
    // VIEWS/GLOBAL/_TOPBAR.PHP
    // —————————————————————————–
    // Includes topbar output.
    // =============================================================================

    ?>

    <?php if ( x_get_option( ‘x_topbar_display’ ) == ‘1’ ) : ?>

    <div class=”x-topbar”>
    <div class=”x-topbar-inner x-container max width”>
    <?php if ( x_get_option( ‘x_topbar_content’ ) != ” ) : ?>
    <p class=”p-info”><?php echo x_get_option( ‘x_topbar_content’ ); ?></p>
    <?php endif; ?>
    <?php x_social_global(); ?>
    <ul class=”x-nav”>
    <li class=”menu-item current-menu-parent x-menu-item x-menu-item-woocommerce”>
    ” class=”x-btn-navbar-woocommerce”>
    <?php echo (x_woocommerce_navbar_cart()); ?>

    </div>
    </div>

    <?php endif; ?>

    #1132888
    iRocketdesign
    Participant
    This reply has been marked as private.
    #1133088
    Rupok
    Member

    Hi there,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer.

    .x-topbar .x-nav {
      float: right;
      margin-right: 5px;
      margin-top: 4px;
    }

    Hope this helps.

    Cheers!

    #1133759
    iRocketdesign
    Participant

    Perfect,

    thank you again. Awesome support!

    #1133902
    Prasant Rai
    Moderator

    You are most welcome. 🙂

    #1232045
    iRocketdesign
    Participant

    I am now getting to activating my store. I was wondering how and where to add a link to my custom cart so it goes to my Cart page?

    thank you!

    Rick

    #1232181
    Jade
    Moderator

    Hi Rick,

    I am not certain about what you mean with a link to the cart page. Do you mean you want to add a navigation item in the menu that leads to the cart page? If so, clicking on the cart icon that is currently in the menu should go to the cart page.

    #1232190
    iRocketdesign
    Participant

    Actually could you tell me how to remove that custom cart all together? For some reason I don’t see that code I used above in the Editor in my functions.php file? I just want that cart gone so I can proceed with the standard woocommerce cart.

    thank you!
    Rick

    #1232198
    iRocketdesign
    Participant

    I want to remove the cart and $0.00 at the top right in blue

    #1232596
    Paul R
    Moderator

    Hi Rick,

    In that case, you may delete the file _topbar.php in wp-content/themes/x-child/framework/views/global

    Thanks

    #1233267
    iRocketdesign
    Participant

    Perfect,

    thanks!
    Rick

    #1233471
    Joao
    Moderator

    Glad to hear it,

    Let us know if you need help with anything else.

    Joao

  • <script> jQuery(function($){ $("#no-reply-1132886 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>