- NewsmagHeader styles
- NewsmagHeader ads
- NewsmagtagDiv Composer Tutorial
- NewsmagCategory templates
- NewsmagSmart list ads
- NewsmagWeather Widget
- NewsmagInstagram widget
- NewsmagPage Menu
- NewsmagMain menu
- NewsmagTop bar templates
- NewsmagLogin – how to enable the user registration
- NewsmagLogo & Favicon
- NewsmagFooter templates
- NewsmagCategory grid styles
- NewsmagCategory top post styles
- NewsmagHow category settings work
- NewsmagTheme colors introduction
Hi Marius
I’m using WPML. Have tried the following in my functions
function hash_header_image_switcher() {
switch(ICL_LANGUAGE_CODE){
case 'en':
$link_to_image = 'top-header-en.png';
break;
case 'fi':
$link_to_image = 'top-header-fi.png';
break;
case 'sv':
$link_to_image = 'top-header-sv.png';
break;
return $link_to_image;
}
}
and then added this in to header-style-2:
<?php echo "<img src=" . hash_header_image_switcher() . " />";?>
but it’s not working.
Any ideas?
Hi,
Only just noticed this but my site apparently doesn’t display any content in Safari or Chrome. Plays nicely with Firefox but the other two just show the menu and header.
Running 3.9 with latest update to theme.
Have tried this on iOS too and again only displays header and nav icon.
Be good to know what’s causing this.
Thanks
Hi guys,
I’d like to use the Header Ad section to display a 728×90 image. For now I’ve used the theme options panel to display the first of the images.
Works fine in the first language, English, but as the site has two other language settings, I need this image to change dependent on language, i.e. to be replaced by the image in language two or language three when the switch is made by the user.
Is there a way of achieving this in the template header-style-2.php?
Thanks
hi,
to decrees the size of the menu on desktop use this css:
.td-menu-header ul.sf-menu li a {
font-size: 13px;
padding-left: 4px;
}
here: http://screencast.com/t/zpzAGXgV6n
———————
to make the home icon disappear on iPad :
#td-top-menu ul.sf-menu li:first-child{
display:none ;
}
here: http://screencast.com/t/zbNt4cLcQW
—————-
the mobile menu is showed under 768px : http://screencast.com/t/KSnkUv8WN
Thanks for you message.
Radu A.
-
This reply was modified 12 years by
Radu A.
All that should go *after* the normal #END WordPress elements …
example (from one of my sites; using custom permalinks – don’t copy the elements for #wordpress or the mod_pagespeed stuff !)
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters move_css_to_head
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters insert_dns_prefetch
</IfModule>
# 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
AddType text/javascript .js
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2500000 seconds"
ExpiresByType image/jpeg "access plus 2500000 seconds"
ExpiresByType image/png "access plus 2500000 seconds"
ExpiresByType image/gif "access plus 2500000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
ExpiresByType text/css "access plus 700000 seconds"
ExpiresByType text/javascript "access plus 700000 seconds"
ExpiresByType application/javascript "access plus 700000 seconds"
ExpiresByType application/x-javascript "access plus 700000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</IfModule>
# END Cache-Control Headers
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 /xmlrpc.php
</IfModule>
ALSO: don’t include the last three lines if you are allowing trackback/pingbacks or using email to post via XMLRPC.
Don’t forget you need to have gzip/deflate running on your server also, which alone is good for 20 points!
And if you’re curious here’s my robots.txt file
User-agent: *
Disallow: /cgi-bin
Disallow: /cgi-bin/
Disallow: /wp-admin
Disallow: /wp-admin/
Disallow: /wp-includes
Disallow: /wp-includes/
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /wp-content/upgrade
Disallow: /wp-content/backup-*
Disallow: /aff/
Disallow: /search/*/*
Disallow: /trackback
Disallow: */trackback
Disallow: /trackback/
@Christopher Have I done this right? My performance grade is now only 78/100
This is my htaccess code below:
# BEGIN WordPress
AddType text/javascript .js
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault “access plus 5 seconds”
ExpiresByType image/x-icon “access plus 2500000 seconds”
ExpiresByType image/jpeg “access plus 2500000 seconds”
ExpiresByType image/png “access plus 2500000 seconds”
ExpiresByType image/gif “access plus 2500000 seconds”
ExpiresByType application/x-shockwave-flash “access plus 2500000 seconds”
ExpiresByType text/css “access plus 700000 seconds”
ExpiresByType text/javascript “access plus 700000 seconds”
ExpiresByType application/javascript “access plus 700000 seconds”
ExpiresByType application/x-javascript “access plus 700000 seconds”
ExpiresByType text/html “access plus 600 seconds”
ExpiresByType application/xhtml+xml “access plus 600 seconds”
</IfModule>
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 /xmlrpc.php
</IfModule>
# END WordPress
-
This reply was modified 12 years by
ToniLaird.
Hello tagDiv,
First off,I would say this theme is great 🙂 But there is some improvements needed!!!!
Header Ad System bugs
I have noticed a lots of bugs this weekend. Which includes problems in the Header Ad System! When someone visits from a 7″ tablet, the Ad covers the whole logo! Although I’ve chosen to display 468×90 in Tablets! Please fix this ASAP. Here is the example: http://www.screencast.com/t/GmKD5f22QD5l
Main Menu Bugs
I am not sure if its a bug or not. But there is some features for the menus, I am going to suggest. First off, please add a feature to show different menus for small display (mobile,tablets)! Cause if someone visits from smaller displays, the items at the end (main menu) goes down! Which is really bad…PLEASE FIX THIS ASAP!!! here is what I’m talking about: http://www.screencast.com/t/PNLvhx6JO0pk
Small/post sliders bugs
Another bug I’ve noticed that the small sliders doesn’t displays the whole image! The sliders crops the images and leave some space in bottom! PLEASE FIX THIS ASAP!!! Ex: http://www.screencast.com/t/YBdLjupIeb
Suggestion:
I have seen a lots of themes/sites uses dividers to divide everything. From ads to sidebar widget. You can look through The Verge for example of their dividers. I would love to see divders (horizontal and vertical) between every widget, sidebar, just like The Verge. Also, add a feature to Disable and Enable this feature, if possible. Please add this in the next version and don’t say “we will discuss this later”. tagDiv haven’t finished any of my request till now!!!!! So, please do this as quickly as possible.
Thanks!
Mehedi
Hi,
Can you provide us a link to see the issue? Also try from Theme panel -> Ads to change the auto size of the banner.
Thanks!
Hi,
You have this option in Theme panel -> Header http://screencast.com/t/v1rj1pve8
Thanks!
Hi,
@Christopher
Style 3 is like your mentioned style 8
[ top menu + socials ]
[ full width logo ]
[ main menu ]
[ full width ad ]
Style 7 can be done easily combining those: http://screencast.com/t/Sh16OLMNkT
@Speedster
1. Can be done easily customizing the headers file used adding this line of code for each AD unit http://screencast.com/t/LO5ZsBdv0iJh here are the AD docs: https://forum.tagdiv.com/ads/
2. Can you show me exactly in which case, in a screenshot or something
3. Do you mean a header for ADS? The can be done adding this HTML above each AD:
<h4 class="block-title">
<span>My header line text</span>
</h4>
Hope this help!
Thanks for the message and for the suggestions!
Hi,
and thanks for those nice words 🙂
1. I presume that you ask about on phone devices? If yes add this CSS in Theme panel -> Custom CSS section:
#td-top-mobile-toggle {
position: absolute;
top: 2px;
}
#td-top-search {
position: absolute;
right: 0px;
top: 0px;
}
.mobile-logo-wrap img {
left: auto;
margin-left: auto;
margin-right: auto;
position: relative;
right: auto;
}
.header-search-wrap .dropdown-menu:before {
right: 15px;
}
.header-search-wrap .dropdown-menu {
left: -280px;
top: 46px;
}
2. Use this CSS
@media (max-width: 767px) {
.td-full-layout .td-menu-background {
background: #66af2a !important;
}
}
Thanks!
You’ll need to set a smaller image/ad size to fit that space, it looks like.
Hi Marius,
i have noticed header ad is cut and not showing fine, have a look to the image
http://oi60.tinypic.com/e67k95.jpg
Thanks
L
how to change header to tranperent ?
+1 I was going to ask about this, a “style 7” for header, such as
[ top menu + socials ]
[ full width ad ]
[ full width logo ]
[ main menu ]
and a “style 8”
[ top menu + socials ]
[ full width logo ]
[ main menu ]
[ full width ad ]
An example of that could be found on one of our older sites, not YET moved over to Newspapers (hold up is me messing with solution for enlarging images for the featured images layout):
http://californianewswire.com/2014/04/18/CNW19293_062237.php/los-angeles-music-networks-2014-rock-and-urban-lamn-jam-music-contests-welcome-sponsor-send2press-news-service/
thanks Marius
Hi,Use this CSS
.header-logo-wrap img {
position: relative;
top: -8px;
}
If you make the logo at 100px height should be aligned without that CSS.
Thanks!
Hi. I’m just trying to customize my theme in a local server and i can not make mega menu work.
It identifies which categories are meant to be mega menu (as it shows an arrow in the header menu) but it fails to display them properly. Instead of getting all parent categories display in a row all I get is a very long list of categories and subcategories – 5 row high. It’s a real mess.
Can you please help me?
Thanks
Silvia
Hi,
Please check this settings: http://screencast.com/t/DZqv7yKR
Thanks for the message!
Hi,
.entry-category a,
.header-search-wrap .dropdown-menu .btn,
.td-sub-footer-copy,
.td-tags a,
.wp-caption-text,
.entry-crumbs span {
font-family: 'Helvetica Neue';
}
If you want other changes you can easily inspect the elements using Inspector from Chrome or Firebug from Firefox and use the selector: http://screencast.com/t/x8LWxXw55EYg
Thanks!
http://bstpremiumthme.staging.wpengine.com/
perviously the extra space in the header used to be white
Excellent! thank you!
Hi, ocbin.
I installed and looks nice but I have no clue how to change the ADS on Header, since the code must be inserted in the Theme Panel.
Do you know how to proceed in this matter?
Thanks for your answer.
Hi,
About the menu that text is because you have 2 menus instance there i think. Check in parts/menu-header.php file.
If you want to show featured posts set it like here: http://screencast.com/t/R5uBIbmnRK and make sure you have post in Featured category.
Thanks!