Hide Product Title
-
Hi.
Currently on our single product page, the product title is repeating. The name of the product is showing twice, on the page title bar and also beside the product image, I think it’s a title in an H2 tag. Is is possible to hide the second h2 and replace it with a custom data?
I created a custom field using ACF. So if the custom field is not empty, then I would like to display it instead of the second product title. Is this possible to do and how?
Thank you.
-
Hello,
Thanks for reaching out!
That sounds like it might require code customization, which is outside our scope of support here in the forums. Some additional context would help us. Can you share a product link or a screenshot using https://snipboard.io/?
Thanks!
Hi,
Thank you for your response.
Here’s the screenshot — https://snipboard.io/6zQwpA.jpg
I am trying to hide that second title which I highlighted with red border.
Hiding that product title can probably be done by adding custom CSS like
display:none
. If you’d like us to take a look, please share a link to your product.To learn more about CSS, I highly recommend using the free tutorials at w3schools. Here, you can find the basics of selectors (how to target the right element on the page), and properties (how to change the element on the page).
- This reply was modified 2 years, 7 months ago by MayKato.
Hi, here’s the status report:
### WordPress Environment ### WordPress address (URL): https://acquireitnow.com Site address (URL): https://acquireitnow.com WC Version: 6.2.0 REST API Version: ? 6.2.0 WC Blocks Version: ? 6.7.3 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.1.0 Log Directory Writable: ? WP Version: 5.9.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.28 PHP Post Max Size: 50 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.81.0 OpenSSL/1.1.1m SUHOSIN Installed: – MySQL Version: 5.7.37-log Max Upload Size: 50 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.2.0 WC Database Prefix: wp_ Total Database Size: 131.67MB Database Data Size: 118.51MB Database Index Size: 13.16MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.06MB + Index: 0.13MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fusion_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fusion_form_entries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_fusion_form_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_fusion_form_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 8.42MB + Index: 0.34MB + Engine InnoDB wp_postmeta: Data: 53.55MB + Index: 8.03MB + Engine InnoDB wp_posts: Data: 33.52MB + Index: 1.31MB + Engine InnoDB wp_qss: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_socialsnap_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_swis_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.14MB + Index: 0.20MB + Engine InnoDB wp_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_term_relationships: Data: 0.20MB + Index: 0.17MB + Engine InnoDB wp_term_taxonomy: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.13MB + Index: 0.17MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wf301_404_logs: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wf301_linkhero: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wf301_redirect_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wf301_redirect_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfconfig: Data: 2.47MB + Index: 0.00MB + Engine InnoDB wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilemods: Data: 11.52MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Data: 0.17MB + Index: 0.05MB + Engine InnoDB wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfissues: Data: 0.05MB + Index: 0.06MB + Engine InnoDB wp_wfknownfilelist: Data: 4.52MB + Index: 0.00MB + Engine InnoDB wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflogins: Data: 0.11MB + Index: 0.03MB + Engine InnoDB wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpf_meta_data: Data: 0.28MB + Index: 0.58MB + Engine InnoDB wp_wpf_meta_keys: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpf_meta_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpf_meta_values_bk: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpf_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpf_modules_type: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpf_usage_stat: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ### Post Type Counts ### acf-field: 19 acf-field-group: 3 attachment: 3151 avada_portfolio: 1 br_product_filter: 1 custom_css: 1 custom-css-js: 6 customize_changeset: 88 e-landing-page: 1 elementor_library: 36 elementor_snippet: 1 filter-set: 1 fusion_element: 6 fusion_form: 4 fusion_tb_layout: 2 fusion_tb_section: 8 fusion_template: 1 mt_pp: 1 nav_menu_item: 19 page: 20 post: 23 product: 1018 revision: 1664 simple_schema_item: 2 wcpa_pt_forms: 1 woolentor-template: 1 wpcf7_contact_form: 3 yith_wcan_preset: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (33) ### uSchema - Ultimate Schema for WordPress: by BooSpot – 3.1.3 301 Redirects Pro: by WebFactory Ltd – 5.98 A-Z Listing: by Dani Llewellyn – 4.2.0 ACF: Better Search: by Mateusz Gbiorczyk – 4.0.1 Advanced Custom Fields PRO: by Delicious Brains – 5.11.4 Akismet Anti-Spam: by Automattic – 4.2.2 CMP - Coming Soon & Maintenance Plugin: by NiteoThemes – 4.0.20 Contact Form 7: by Takayuki Miyoshi – 5.5.5 Cookie Notice & Compliance for GDPR / CCPA: by Hu-manity.co – 2.2.1 Simple Custom CSS and JS: by SilkyPress.com – 3.38.1 Disable Comments: by WPDeveloper – 2.3.3 DynamicConditions: by RTO GmbH – 1.5.1 Elementor Pro: by Elementor.com – 3.3.0 Elementor: by Elementor.com – 3.5.5 Essential Addons for Elementor - Pro: by WPDeveloper – 5.0.6 Essential Addons for Elementor: by WPDeveloper – 5.0.7 Avada Builder: by ThemeFusion – 3.5 Avada Core: by ThemeFusion – 5.5 Hide My WP Ghost: by WPPlugins – 6.0.14 Listen2It - Text-to-speech audio articles: by Listen2It – 1.0.0 User Profile Picture: by Cozmoslabs – 2.6.0 MWB Product Filter for WooCommerce: by MakeWebBetter – 2.0.0 Premium Addons for Elementor: by Leap13 – 4.8.8 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5 Social Snap Lite: by Social Snap – 1.1.17 Squirrly SEO (Smart Strategy): by Squirrly SEO – 11.1.11 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.22.4 WooCommerce: by Automattic – 6.2.0 (update to version 6.2.1 is available) Wordfence Security: by Wordfence – 7.5.8 WP File Manager: by mndpsingh287 – 7.1.4 Smart Image Resize PRO: by Nabil Lemsieh – 1.7.5.4 Related Products for WooCommerce: by WebToffee – 1.4.1 YITH WooCommerce Catalog Mode: by YITH – 2.6.0 ### Inactive Plugins (1) ### SWIS Performance: by Exactly WWW – 1.5.4 ### Must Use Plugins (1) ### Elementor Safe Mode: by Elementor.com – 1.0.0 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: ? Page not set Cart: #58 - /cart/ Checkout: #59 - /checkout/ My account: #60 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Avada Version: 7.5 Author URL: https://themeforest.net/user/ThemeFusion Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: Avada/woocommerce/cart/cart.php Avada/woocommerce/checkout/form-pay.php Avada/woocommerce/checkout/review-order.php Avada/woocommerce/checkout/thankyou.php Avada/woocommerce/loop/loop-start.php Avada/woocommerce/single-product/add-to-cart/variable.php version 3.5.5 is out of date. The core version is 6.1.0 Avada/woocommerce/single-product/short-description.php Avada/woocommerce/single-product/tabs/additional-information.php Avada/woocommerce/single-product/tabs/description.php Outdated Templates: ? Learn how to update ### Action Scheduler ### Complete: 152 Oldest: 2022-02-11 17:25:59 +0000 Newest: 2022-02-27 00:19:03 +0000 ### Status report information ### Generated at: 2022-02-27 05:41:02 +00:00
Hi @maykato,
Thank you for your response.
Yes, that’s the first thing that I did, I set the display to none, it removed all the second title. However there are a lot of products on the site that currently has no data from the custom field which I created using ACF, let’s call this field for example custom_sub_title. So for products with empty custom_sub_title we would like to display the title of the product, else, display the data from custom_sub_title field.
Hello,
Thanks for clarifying! That definitely requires additional code – just CSS isn’t enough.
My suggestion is that you reach out to ACF’s support to see if they might have a solution they can provide – this might have come up in the past for them.
I’m going to leave this open for a bit to see if anyone from the community is able to chime in to help you out.
I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.
You can also visit the WooCommerce Facebook group or the
#developers
channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.Hope this helps!
Hi there,
We haven’t heard back from you in a while, so I’m marking this thread as resolved.
Hopefully, the provided information was helpful, and you solved the issue. If you have any further questions, we recommend creating a new topic.
Cheers!
- The topic ‘Hide Product Title’ is closed to new replies.