How To Turn Off Social Icons In The Secondary Menu Bar In Divi

How To Turn Off Social Icons In The Secondary Menu Bar In Divi

How to Add Floating Social Media Icons to Divi Websites

Disabling social media icons within the Divi secondary header requires adjusting the Theme Customizer settings or implementing targeted custom CSS to override the default display properties. This guide covers both the native interface toggles and the technical overrides necessary to ensure your header layout remains clean and professional across all device viewports.


Pre-Operation Requirements and Theme Configuration

Before modifying the secondary menu bar, ensure you have administrative access to your WordPress dashboard and are operating within a child theme environment if you plan on implementing CSS overrides. Modifying global header settings affects site-wide layout architecture, so verifying your current Divi version is essential for feature compatibility.



  • Essential Tools: WordPress administrative dashboard, Divi Theme Options, and access to the Divi Theme Customizer.
  • Prerequisite Knowledge: Familiarity with the Divi header architecture, specifically the distinction between primary and secondary menus.
  • Duration Estimate: Two to five minutes for standard configuration; ten minutes if CSS troubleshooting is required.
  • Configuration Standard: Always verify mobile responsiveness after disabling header elements, as stacking behavior often shifts when iconography is removed.

Executing the Removal of Social Media Icons

The secondary menu bar in Divi serves as a functional space for contact information and social connectivity. If your design strategy necessitates a minimalist approach, follow these procedural steps to disable the icons effectively.



Step 1: Navigating the Divi Theme Customizer

Log in to your WordPress dashboard and navigate to the Divi tab on the left sidebar. Select the Theme Customizer option. This interface allows for real-time visual editing of your site header without requiring a page refresh. Once inside the Customizer, select the Header & Navigation menu to access the specific configurations for your secondary bar.



Step 2: Toggling Social Icons via Interface Settings

Within the Header & Navigation section, select Header Elements. You will see a series of checkboxes that govern what information is displayed in your secondary header. Locate the checkbox labeled Show Social Icons. By unchecking this box, Divi will automatically strip the social icon markup from the secondary header rendering. Click the Publish button at the top of the interface to commit these changes to your live site.



Step 3: Implementing CSS Overrides for Persistent Icons

In certain instances, specifically when using legacy Divi child themes or custom header hooks, the interface toggle may not fully remove the social icon containers. If the icons persist, you must force their removal through the Divi Theme Options CSS panel. Navigate to Divi, then Theme Options, and scroll to the bottom to find the Custom CSS field. Enter the specific display property to hide the elements. Target the et-social-icons class by setting its display property to none. This ensures the container is ignored by the browser rendering engine entirely.

Pro-Tip: Always clear your browser cache and any third-party caching plugins (such as WP Rocket or W3 Total Cache) immediately after saving your CSS changes to view the updated header structure.



Step 4: Verifying Layout Adjustments

Once the icons are removed, the secondary menu items may appear misaligned or cramped. Check the alignment of your text-based contact information (like phone numbers or email addresses) in the secondary menu settings. If necessary, adjust the padding or margin values for the secondary header to restore visual balance now that the width occupied by the social icons has been reclaimed.


Comparison of Header Modification Methods

The following table outlines the efficacy and use cases for different methods of modifying the Divi secondary header components.



Method Control Level Technical Complexity Primary Use Case
Theme Customizer High Minimal Standard site-wide icon removal.
Custom CSS Absolute Moderate Overriding conflicting theme hooks or specific icon visibility.
PHP Hook Modification Absolute High Advanced developer-level removal in functions.php.
Plugin Overlays Variable Minimal Quick fixes for specific page-level header variants.

Common Header Configuration Failures and Field Fixes

Despite the simplicity of the Divi interface, users frequently encounter rendering errors after modifying header elements. Below are the most common scenarios and their corresponding fixes.



  • Issue: The Secondary Bar is Empty but Still Occupies Space.



    • Root Cause: Even with icons removed, the secondary menu container may retain its height due to padding settings in the Header & Navigation > Secondary Menu Bar section.
    • Actionable Fix: Navigate to the Secondary Menu Bar settings in the Customizer and set the background color or padding to match the primary header or reduce the height to zero.
  • Issue: Social Icons Are Still Visible on Mobile Devices.



    • Root Cause: Some caching configurations or mobile-specific theme hooks override the global visibility settings for icons.
    • Actionable Fix: Add a media query in your Custom CSS targeting the mobile breakpoint to force the display of the social icon container to none.
  • Issue: Changes Do Not Appear After Updating Theme Options.



    • Root Cause: Static file caching or a Minified CSS conflict is serving an outdated version of the theme stylesheet to your browser.
    • Actionable Fix: Navigate to Divi > Theme Options > Builder > Advanced and toggle the Static CSS File Generation to off, then on again to force a cache refresh.

Frequently Asked Questions



Can I remove social icons from only one page?

Yes, you can hide the social icons on a specific page by using the Divi Page Settings on the right side of the post editor. Locate the Custom CSS tab and input the display: none property for the social icons container, which will apply only to that specific page ID.



Does removing icons affect my SEO rankings?

Removing social icons from your header does not negatively impact your technical SEO rankings. In fact, removing unnecessary elements can slightly improve page load speed and Core Web Vitals metrics, which are beneficial for search engine optimization.



What happens to the social link URLs when the icons are hidden?

The links you defined in the Divi Theme Options remain saved in your database even when hidden. The icons are simply removed from the HTML markup output during rendering, meaning you can easily re-enable them in the future without re-entering your profile URLs.



Can I replace the icons with custom text?

Divi does not natively support text-based social replacements in the secondary bar. To achieve this, you should hide the default icons and use the secondary menu feature to add text links, which gives you more control over the typography and styling.

Optimize Your Header for Conversions

A clean, uncluttered header significantly enhances user experience and directs attention to your primary calls to action. Use these configurations to ensure your Divi header reflects your brand identity with precision and technical efficiency.


How to add more Divi social media icons at footer - Divi Extended

How to add more Divi social media icons at footer - Divi Extended

Read also: Defense Week 4 Rankings: Top D/ST Streamers and Elite Starts for Fantasy Football