hyldahl82
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Neve] Visual options for shopping cart iconthanks, that might be a workaround for what I’d like to do.
Is there a way to increase the font height of the menu text in the free version?
Forum: Plugins
In reply to: [Yoast SEO] Second description field for category pagesCan I assume that the search engines will scan and pick up the text in the 2nd description box regardless, but that Yoast SEO just isn’t capable of reading the text at the current moment?
Forum: Plugins
In reply to: [Yoast SEO] Second description field for category pagesWould it be possible to write an alternative to the code so that the 2nd description box is actually placed above the products and the 1st box is placed underneath the products – that would do the trick for me
/** * @snippet Add new textarea to Product Category Pages - WooCommerce * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogli * @compatible WooCommerce 5 * @donate $9 https://businessbloomer.com/bloomer-armada/ */ // --------------- // 1. Display field on "Add new product category" admin page add_action( 'product_cat_add_form_fields', 'bbloomer_wp_editor_add', 10, 2 ); function bbloomer_wp_editor_add() { ?> <div class="form-field"> <label for="seconddesc"><?php echo __( 'Second Description', 'woocommerce' ); ?></label> <?php $settings = array( 'textarea_name' => 'seconddesc', 'quicktags' => array( 'buttons' => 'em,strong,link' ), 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator', 'theme_advanced_buttons2' => '', ), 'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:175px; width:100%;}</style>', ); wp_editor( '', 'seconddesc', $settings ); ?> <p class="description"><?php echo __( 'This is the description that goes BELOW products on the category page', 'woocommerce' ); ?></p> </div> <?php } // --------------- // 2. Display field on "Edit product category" admin page add_action( 'product_cat_edit_form_fields', 'bbloomer_wp_editor_edit', 10, 2 ); function bbloomer_wp_editor_edit( $term ) { $second_desc = htmlspecialchars_decode( get_woocommerce_term_meta( $term->term_id, 'seconddesc', true ) ); ?> <tr class="form-field"> <th scope="row" valign="top"><label for="second-desc"><?php echo __( 'Second Description', 'woocommerce' ); ?></label></th> <td> <?php $settings = array( 'textarea_name' => 'seconddesc', 'quicktags' => array( 'buttons' => 'em,strong,link' ), 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator', 'theme_advanced_buttons2' => '', ), 'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:175px; width:100%;}</style>', ); wp_editor( $second_desc, 'seconddesc', $settings ); ?> <p class="description"><?php echo __( 'This is the description that goes BELOW products on the category page', 'woocommerce' ); ?></p> </td> </tr> <?php } // --------------- // 3. Save field @ admin page add_action( 'edit_term', 'bbloomer_save_wp_editor', 10, 3 ); add_action( 'created_term', 'bbloomer_save_wp_editor', 10, 3 ); function bbloomer_save_wp_editor( $term_id, $tt_id = '', $taxonomy = '' ) { if ( isset( $_POST['seconddesc'] ) && 'product_cat' === $taxonomy ) { update_woocommerce_term_meta( $term_id, 'seconddesc', esc_attr( $_POST['seconddesc'] ) ); } } // --------------- // 4. Display field under products @ Product Category pages add_action( 'woocommerce_after_shop_loop', 'bbloomer_display_wp_editor_content', 5 ); function bbloomer_display_wp_editor_content() { if ( is_product_taxonomy() ) { $term = get_queried_object(); if ( $term && ! empty( get_woocommerce_term_meta( $term->term_id, 'seconddesc', true ) ) ) { echo '<p class="term-description">' . wc_format_content( htmlspecialchars_decode( get_woocommerce_term_meta( $term->term_id, 'seconddesc', true ) ) ) . '</p>'; } } }
Like this?
wp_enqueue_script
<script src=”https://apps.elfsight.com/p/platform.js” defer></script>
<div class=”elfsight-app-f5095377-f1dc-4606-a5e9-e656b62d8d31″></div>
<div>I’m not that strong in coding
btw, the page is: https://redwood-denmark.com/product/redwood-garden-chiminea
the script is customer reviews from Etsy. My plan was to create a tab with customer reviews. But just pasting the code in the text area, doesn’t help much
Forum: Developing with WordPress
In reply to: Show Etsy revies in TextareaI don’t have that editor. It’s under a woocommerce product custom tab
Forum: Plugins
In reply to: [WooCommerce] Cannot remove shopping cart from top menu entirelyThanks lorro! much appreciated
Forum: Fixing WordPress
In reply to: Getting rid of /categoryUnder which tab do I find that option?
Forum: Fixing WordPress
In reply to: Getting rid of /categoryPro or free version?
Forum: Fixing WordPress
In reply to: Getting rid of /categoryYes I want to “duplicate” the content from “/category/news” to a new page “/news”
Forum: Plugins
In reply to: [WP-Members Membership Plugin] Restricted access until activated by adminWhen have that box ticked, log out, create a new user, I still have full access to all pages, from the point I login with the new user.
I have woocommerce and the new user sign up on the woocommerce sign up page, is that what is causing the problem perhaps?
Forum: Plugins
In reply to: [WooCommerce] Change text at checkoutumm, maybe I’ve misunderstood you. It’s the text “Billing & Shipping” I want to change. It’s the text located just above “First name”
Forum: Plugins
In reply to: [WooCommerce] Change text at checkoutThat would be the checkout form labe
Forum: Fixing WordPress
In reply to: Link: Open in same windowCan I rephase the question ??
To what can I add to this code, so that the link opens in the same window?
[dt_button link="https://redwood-denmark.com/en/h4-fire-pit/" color_mode="custom" color="#cc0935" animation="pulse"]READ MORE[/dt_button]
Forum: Plugins
In reply to: [WooCommerce] Setup own /shop/ pageJust to give an example (that might easier)
https://hyldahlthomsen.dk/da/shop/
As you can see, the top of the page is an element that I have insterted myself through visual composer.
The section underneath, is something woocommerce inserts itself be default.