- TutorialsDefault Block Settings Guide
Thanks for this, I’ve managed to implement it on the home page and when I go to individual posts I can apply the new header by going in via TagDiv composer and choosing the mobile view. Is there any way to apply this setting across all posts? I’ve tried to go from theme panel – header – cloud library template and tried to apply this header to all but it doesn’t seem to work? Please let me know, would be much easier to apply to all as opposed to one by one. Thank you.
I am using Apache with its theme and I have noticed that my instances in AWS are overloaded.
My configuration is with PHP7.3 and I have 256Mb of memory configured, I previously had 512M for php.
My web server is constantly falling despite having a load balancer with 5 instances of 8GB each.
-------------------------------------
/var/log/httpd/error_log
-------------------------------------
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
[Mon Feb 17 21:48:21.902158 2020] [php7:error] [pid 3913] [client 172.31.73.248:35628] PHP Fatal error: Out of memory (allocated 18874368) (tried to allocate 40960 bytes) in /var/app/current/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 1670, referer: https://lpderecho.pe/
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
[Mon Feb 17 21:48:22.037790 2020] [php7:error] [pid 3913] [client 172.31.84.215:56100] PHP Fatal error: Out of memory (allocated 35651584) (tried to allocate 40960 bytes) in /var/app/current/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 1670
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
My htacces
# BEGIN W3TC Page Cache core
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} =on
RewriteRule .* - [E=W3TC_SSL:_ssl]
RewriteCond %{SERVER_PORT} =443
RewriteRule .* - [E=W3TC_SSL:_ssl]
RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]
RewriteRule .* - [E=W3TC_SSL:_ssl]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteRule .* - [E=W3TC_ENC:_gzip]
RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
RewriteRule .* - [E=W3TC_PREVIEW:_preview]
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} =""
RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
RewriteCond %{REQUEST_URI} \/$
RewriteCond "%{ENV:PHP_DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
</IfModule>
# END W3TC Page Cache core
# BEGIN W3TC Browser Cache
<IfModule mod_mime.c>
AddType text/css .css
AddType text/x-component .htc
AddType application/x-javascript .js
AddType application/javascript .js2
AddType text/javascript .js3
AddType text/x-js .js4
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
AddType image/bmp .bmp
AddType application/java .class
AddType video/divx .divx
AddType application/msword .doc .docx
AddType application/vnd.ms-fontobject .eot
AddType application/x-msdownload .exe
AddType image/gif .gif
AddType application/x-gzip .gz .gzip
AddType image/x-icon .ico
AddType image/jpeg .jpg .jpeg .jpe
AddType image/webp .webp
AddType application/json .json
AddType application/vnd.ms-access .mdb
AddType audio/midi .mid .midi
AddType video/quicktime .mov .qt
AddType audio/mpeg .mp3 .m4a
AddType video/mp4 .mp4 .m4v
AddType video/mpeg .mpeg .mpg .mpe
AddType video/webm .webm
AddType application/vnd.ms-project .mpp
AddType application/x-font-otf .otf
AddType application/vnd.ms-opentype ._otf
AddType application/vnd.oasis.opendocument.database .odb
AddType application/vnd.oasis.opendocument.chart .odc
AddType application/vnd.oasis.opendocument.formula .odf
AddType application/vnd.oasis.opendocument.graphics .odg
AddType application/vnd.oasis.opendocument.presentation .odp
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.text .odt
AddType audio/ogg .ogg
AddType application/pdf .pdf
AddType image/png .png
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
AddType audio/x-realaudio .ra .ram
AddType image/svg+xml .svg .svgz
AddType application/x-shockwave-flash .swf
AddType application/x-tar .tar
AddType image/tiff .tif .tiff
AddType application/x-font-ttf .ttf .ttc
AddType application/vnd.ms-opentype ._ttf
AddType audio/wav .wav
AddType audio/wma .wma
AddType application/vnd.ms-write .wri
AddType application/font-woff .woff
AddType application/font-woff2 .woff2
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
AddType application/zip .zip
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css A31536000
ExpiresByType text/x-component A31536000
ExpiresByType application/x-javascript A31536000
ExpiresByType application/javascript A31536000
ExpiresByType text/javascript A31536000
ExpiresByType text/x-js A31536000
ExpiresByType video/asf A31536000
ExpiresByType video/avi A31536000
ExpiresByType image/bmp A31536000
ExpiresByType application/java A31536000
ExpiresByType video/divx A31536000
ExpiresByType application/msword A31536000
ExpiresByType application/vnd.ms-fontobject A31536000
ExpiresByType application/x-msdownload A31536000
ExpiresByType image/gif A31536000
ExpiresByType application/x-gzip A31536000
ExpiresByType image/x-icon A31536000
ExpiresByType image/jpeg A31536000
ExpiresByType image/webp A31536000
ExpiresByType application/json A31536000
ExpiresByType application/vnd.ms-access A31536000
ExpiresByType audio/midi A31536000
ExpiresByType video/quicktime A31536000
ExpiresByType audio/mpeg A31536000
ExpiresByType video/mp4 A31536000
ExpiresByType video/mpeg A31536000
ExpiresByType video/webm A31536000
ExpiresByType application/vnd.ms-project A31536000
ExpiresByType application/x-font-otf A31536000
ExpiresByType application/vnd.ms-opentype A31536000
ExpiresByType application/vnd.oasis.opendocument.database A31536000
ExpiresByType application/vnd.oasis.opendocument.chart A31536000
ExpiresByType application/vnd.oasis.opendocument.formula A31536000
ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
ExpiresByType application/vnd.oasis.opendocument.text A31536000
ExpiresByType audio/ogg A31536000
ExpiresByType application/pdf A31536000
ExpiresByType image/png A31536000
ExpiresByType application/vnd.ms-powerpoint A31536000
ExpiresByType audio/x-realaudio A31536000
ExpiresByType image/svg+xml A31536000
ExpiresByType application/x-shockwave-flash A31536000
ExpiresByType application/x-tar A31536000
ExpiresByType image/tiff A31536000
ExpiresByType application/x-font-ttf A31536000
ExpiresByType application/vnd.ms-opentype A31536000
ExpiresByType audio/wav A31536000
ExpiresByType audio/wma A31536000
ExpiresByType application/vnd.ms-write A31536000
ExpiresByType application/font-woff A31536000
ExpiresByType application/font-woff2 A31536000
ExpiresByType application/vnd.ms-excel A31536000
ExpiresByType application/zip A31536000
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/richtext text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon application/json application/vnd.ms-access video/webm application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel
<IfModule mod_mime.c>
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
</IfModule>
</IfModule>
<FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$">
FileETag MTime Size
<IfModule mod_headers.c>
Header unset Set-Cookie
</IfModule>
</FilesMatch>
<FilesMatch "\.(html|htm|rtf|rtx|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|TXT|XSD|XSL|XML)$">
FileETag MTime Size
</FilesMatch>
<FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|WEBP|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|_TTF|WAV|WMA|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
FileETag MTime Size
<IfModule mod_headers.c>
Header unset Set-Cookie
</IfModule>
</FilesMatch>
<FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|json|mdb|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|JSON|MDB|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$">
<IfModule mod_headers.c>
Header unset Last-Modified
</IfModule>
</FilesMatch>
<IfModule mod_headers.c>
Header set Referrer-Policy "no-referrer-when-downgrade"
</IfModule>
# END W3TC Browser Cache
# BEGIN W3TC CDN
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
# END W3TC CDN
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
<IfModule mod_substitute.c>
SubstituteMaxLineLength 10M
</IfModule>
I have a header ad that works great but is just to big on mobile phones. I want to turn it off on all mobile phones. I’ve turned it off in the theme console, but only the PHONE HOME PAGE turns off, it still shows up on all other mobile pages. How do I get a header ad on all pages (desktop, tablet) but NOT displayed on mobile phones?
http://www.razorclamming.com
At present I have ADS, HEADER AD, DISABLE ON PHONES set to To OFF. (but only turns off home page header ad on phones.)
Hi
Every time I access the template editing area (Cloud Templates) and check the Footer Template – Default PRO, the error shown in the image appears.

In addition, the header also appears in this template. I’m not sure it should be like that.
How could I solve this situation?
Thank you very much in advance
Can you please give me exact step by steps how to do the below? (As if showing a beginner.)
How can the background header on the Desktop version of website, display as a full width header background
on the mobile version of website?
Currently, the website is not using a logo. The logo is in the background header. When opening on a mobile device, the background header does not show, and I have to use a logo, but this is NOT Full-Width.
I need to be able to have a Full-Width background header image display on mobile device.
How can I do this?
I see templates in cloud, but I only want to change mobile device header not desktop.
Can you please give me step by step instructions?
Hello !
That can be changed or removed by editing the header as you can see here: https://www.screencast.com/t/qBEDk0ZQzYy
Thank you !
Hello !
Unfortunately at the moment there is a problem with this. Please edit the footer from the homepage. Starting with 10.3 you have the possibility to edit the header / content and footer from the homepage directly not needing to open multiple templates to be edited.
I hope this was helpful !
Thank you !
Hi,
From what I can see the header looks like this on desktop – https://prnt.sc/r3j7ki
On mobile I see you have activated the mobile theme, so the mobile theme header will be displayed – https://prnt.sc/r3j94j but I see it looks broken. Are you using any custom CSS in the theme panel? Please check.
If there is no custom CSS, then we could take a closer look at it. Send us an email at contact@tagdiv.com and provide admin login. Include a link to this topic in the email.
Thanks
Hi,
The top menu won’t be displayed on mobile, for the predefined header templates. I could provide a code to make it visible if that is what you want, it will look like this – https://prnt.sc/r3iszd
Here is the code – https://pastebin.com/bzD7vxpP it can be entered in the custom CSS section of the theme panel.
Or you can use a cloud header template, and design it as you want for mobile
– https://forum.tagdiv.com/header-styles/
– https://tagdiv.com/newspaper-theme-customize-the-header-manager/
Thanks
Best members
I like the translation options of the team a lot. But in my (and other) country’s there are multiple languages used.
Is there an option to:
– Base the theme language on the browser language of the visitor
– Link the IP of a visitor to an theme translation language
If not I relay would like to have the option for one / 2 flags in the header, so the user can switch the theme language manually (only on the view of the site not for the admin)
Krs
When i try to activate header template, i get activation error.My theme is already activated how can i fix this?
Hello !
Do you mean that when you’re on a post and click on the header logo that will not redirect you to the homepage ?
That can be achieved by using a Header Template as you can see here: https://forum.tagdiv.com/header-manager/ And on the Header Logo element you will be able to set it as you can see here:https://www.screencast.com/t/SMkkesH4g
I hope this was helpful !
Thank you !
Hello !
While editing with tagDiv Composer you will be able to activate the sticky header in composer, which will allow you to edit the sticky menu in tagDiv Composer: https://www.screencast.com/t/iCrBNo0P
Thank you !
Hello !
In 10.3 version Headers and Footers can be found in the Cloud Library and you can fully customize them using the tagDiv Composer. Find out more about it here: https://forum.tagdiv.com/header-manager/ ; https://forum.tagdiv.com/footer-templates/
Thank you !
Hi, I need to set up a background to a category header, when I see my site on mobile there is a big white background where the category name is, I made some changes to category style and background but the image I set up affects the whole background of the category I want to change the Header of the category only. how can I solve this?
Hello,
I pasted GTM head and body codes into the theme’s header.php as shown here: http://prntscr.com/r391xd.
Did it multiple times on other pages and everything worked just well.
My website is AfricaGaming.net.
When I go into preview mode (http://prntscr.com/r3947c), nothing happens on the website. No container at the bottom showing GTM is installed properly: http://prntscr.com/r394pq. Tried cleaning the cache, tried incognito, tried on Mac, tried on PC, not working.
I checked if things are working with Chrome add-on Google Tag Assistant. Nothing: http://prntscr.com/r395gr.
My hosting is with SiteGround, if that could mean something.
Please help!
Warning: getimagesize(https://alfredoalvarez.mx/wp-content/uploads/2020/02/alfredoalvarez.mx-logo2-1024×145-1.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/ilolfemy/public_html/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 786
Sorry for the stupid question: I can’t change color of search element here – https://www.screencast.com/t/gDVqUMRE
I’ve added in the Custom CSS this class
a {
color: #dd3333;
}
it works good for test – red color,
But I can’t reach drop-down arrow to white color
I tried this one:
a .td-header-search-button
{
color:white;
}
it doesn’t work for me 🙂
Google bots don’t detect the Google meta tags that I typed on the file “header.php”
Hello
I’m trying to remove the background image from the romances header template, but I cannot find the option to remove it.
Can you please help me?
Thanks
In the chrome mobile views look like this
http://prnt.sc/r2p4p7
in the Iphone view
http://prnt.sc/r2p5af
Header manager settings fail
http://prnt.sc/r2p5oh
also no matter what I have changed in the header manager, it still looks like this
Hello, i just purchased another license for my new site https://www.earthismysterious.com/
I request a new feature for future update and its Off canvas Menu.
We can use off canvas menu alongside the main menu in header.
Thanks
That is anchor ads. For that you need to copy auto ads code from you adsense account and paste it in Theme panel->ANALYTICS/JS CODES->Header script code>(PASTE YOUR CODE HERE)
FYI, Auto ads code will look like the below code
<script data-ad-client=”ca-pub-1111111111111111″ async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
Ho un problema con il sub menu dell’header che non appare e non è cliccabile! Esempio: Sport(categoria principale)/calcio/pallavolo/squash.
Hello,
I am having issues as the logo on my site will not update. I’ve followed directions on updating the logo image in the cloud library template.
The logo when you come to my site will load, but when you scroll, it reverts back to the native template logo.
Any advice?