So I’d like to move the woocommerce cart from the menu to the topbar, and I understood this is possible via functions.php in theme editor.
I found an old topic about the same subject, but as I’m not familiar with php coding at all, I’d just like to make sure I do everything correctly, to avoid any disasters with the website in question.
I don’t know where in the Wordpress - appreance - Theme Editor functions.php I can safely put the code, so if you could kindly let me know what code I need, and in where to paste it.
This is how the functions.php looks at the moment:
<?php // ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions to X in this file. // ============================================================================= // ============================================================================= // TABLE OF CONTENTS // ----------------------------------------------------------------------------- // 01. Enqueue Parent Stylesheet // 02. Additional Functions // ============================================================================= // Enqueue Parent Stylesheet // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' ); // Additional Functions // =============================================================================