Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @jpollie

    The deprecated warnings are due to WooCommerce moving away from dynamic properties. Instead of using WC()->cart->add_fee(), you should update your plugin to use WC()->cart->fees_api()->add_fee() from the WC_Cart_Fees_API class.

    Check your checkout_apply_tip() and handle_apply_tip_on_checkout_block() functions and refactor them to use the new API. Similarly, in update_percentage_tip(), ensure fee recalculations follow WooCommerce’s latest guidelines.

    Updating this should resolve the warnings and ensure future compatibility. 🚀

    Regards: Shehzam

    • This reply was modified 1 year, 2 months ago by shehzam2.

    Hey, I totally get your frustration with the new WordPress menu system! Since the traditional “Menus” section under Appearance is gone in the new editor, you’ll need to use the Site Editor instead.

    Here’s how you can add your Careers/Recruitment page to the header:

    1. Go to Appearance > Editor.
    2. Click on the header section where your menu is located.
    3. Look for the Navigation Block and select it.
    4. Click Edit and then Add Link (usually a “+” button).
    5. Search for your Careers/Recruitment page and select it.
    6. Save and publish the changes.

    After that, your new menu item should appear in the header.

    Hey Choonthen,

    For removing the unwanted “Category: <span>” and “</span>” from the header, it’s likely being added automatically by your theme or a plugin. You might be able to fix it by:

    1. Checking Theme Settings – Some themes allow you to customize or disable category prefixes in the settings.
    2. Using Custom CSS – If it’s just a display issue, try hiding it with CSS:cssCopyEditspan.category-prefix { display: none; }
    3. Editing the Template Files – If you’re comfortable with code, check category.php or archive.php in your theme files for something like:phpCopyEditecho 'Category: <span>' . single_cat_title('', false) . '</span>'; You can remove or modify the text there.

    For setting different header images for each trip, check if your theme supports featured images for categories. If not, you might need a plugin like Dynamic Featured Image or manually set it through custom CSS targeting each category.

Viewing 3 replies - 1 through 3 (of 3 total)