Loading Code in header | Even I am not using WP-DM on Some Pages
-
I am using WP Download Manager on my website. It’s a great plugin. Thanks for it.
However, I am facing some issues with it. There is no file linked to download on the home page and many other pages of my website. But the WP-DM is loading a lot of code in the header of my website. (Even I have disabled the WP-DM files on these pages, But obviously, I can’t unload the header file)
I don’t know why it needs to be loaded from the header. Further, it’s loading Rubik and some other fonts from google. Previously, I was facing the issue of header expiry for these fonts.googlapi.com fonts in GTMetrix. Now, I disabled the Google Font and Font Awesome from the settings of WP-DM. So, this GTMetrix is clear.
Now, if I disable the Front CSS from settings. It breaks the CSS of the download button and any LockOptions pop-up. Still disabling this option loads 2 style codes, one in the header.
How I can unload these codes from the header of all pages? If it’s necessary for pages where I am using the WP-DM plugin, then at least from those where I am not using it.
I have pasted the code below that I search using Rubik word in the source code of my page. I just a bit of that not complete.
<style> @import url('https://fonts.googleapis.com/css?family=Rubik%3A400%2C500&display=swap'); .w3eden .fetfont, .w3eden .btn, .w3eden .btn.wpdm-front h3.title, .w3eden .wpdm-social-lock-box .IN-widget a span:last-child, .w3eden #xfilelist .panel-heading, .w3eden .wpdm-frontend-tabs a, .w3eden .alert:before, .w3eden .panel .panel-heading, .w3eden .discount-msg, .w3eden .panel.dashboard-panel h3, .w3eden #wpdm-dashboard-sidebar .list-group-item, .w3eden #package-description .wp-switch-editor, .w3eden .w3eden.author-dashbboard .nav.nav-tabs li a, .w3eden .wpdm_cart thead th, .w3eden #csp .list-group-item, .w3eden .modal-title { font-family: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; text-transform: uppercase; font-weight: 500; } .w3eden #csp .list-group-item{ text-transform: unset; } </style> <style> :root{ --color-primary: #4a8eff; --color-primary-rgb: 74, 142, 255; --color-primary-hover: #4a8eff; --color-primary-active: #4a8eff; --color-secondary: #4a8eff; --color-secondary-rgb: 74, 142, 255; --color-secondary-hover: #4a8eff; --color-secondary-active: #4a8eff; --color-success: #18ce0f; --color-success-rgb: 24, 206, 15; --color-success-hover: #4a8eff; --color-success-active: #4a8eff; --color-info: #2CA8FF; --color-info-rgb: 44, 168, 255; --color-info-hover: #2CA8FF; --color-info-active: #2CA8FF; --color-warning: #f29e0f; --color-warning-rgb: 242, 158, 15; --color-warning-hover: orange; --color-warning-active: orange; --color-danger: #ff5062; --color-danger-rgb: 255, 80, 98; --color-danger-hover: #ff5062; --color-danger-active: #ff5062; --color-green: #30b570; --color-blue: #0073ff; --color-purple: #8557D3; --color-red: #ff5062; --color-muted: rgba(69, 89, 122, 0.6); --wpdm-font: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } .wpdm-download-link.btn.btn-primary{ border-radius: 4px; } </style>
The page I need help with: [log in to see the link]
- The topic ‘Loading Code in header | Even I am not using WP-DM on Some Pages’ is closed to new replies.