- NewspaperHeader Builder
- NewsmagHeader styles
- NewsmagHeader ads
- NewspaperHeader ads
- NewspaperHeader styles
- Apitd_api_header_style::delete
- Apitd_api_header_style::update_key
- Apitd_api_header_style::update
- Apitd_api_header_style::add
- ApiAPI – Header style – Introduction
- NewspaperSearch setup for custom post type
- NewspapertagDiv Composer – Website Manager
- NewspaperBookmark – Save For Later
- NewspaperWooCommerce: Happy “Add to Favorites!”
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperPosts Loop Element
- NewspaperHow to Add a Logo in Newspaper
- NewspaperDefault Category Settings
- NewspaperWhen tagDiv Composer is Not Working
Hello temp2escape,
Please remove the above solution with padding-top and replace it with the code below.
.td-header-wrap .td-affix .sf-menu > li > a {
line-height: 75px !important;
}
}
Now, the menu will work perfectly.
Hope this helps and let us know how it goes!
Thank you for the message!
Hi
To display a different header ads on pages you need to edit the ads.php file and add a set of conditions like here: http://screencast.com/t/E2qMgK02
if (is_page(page id)){
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
}elseif (is_page(page id)){
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_2"]');
}elseif (is_page(page id){
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_3"]');
}
To get the page id follow this link: http://screencast.com/t/hgeXHEyRRr0 Note that for the front page the function is: is_front_page() https://codex.wordpress.org/Function_Reference/is_front_page
Hope this help.
Thanks!
-
This reply was modified 10 years by
Andrei L..
selecting an option in my top bar menu links automatically to an option in the main header menu. How do I remove this feature so the options in my top bar menu can have separate pages of their own?
HI, I am having a problem with the post template header. When i choose to have a full image on header, it shows it unaligned. Also the smart list is not working and shows a broken list
can you help ?
Hello
How to different header ads on each page. Premium plugin? Code? Thank you.
Website:www.avmdergi.com
Hello temp2escape,
Please try to use a code below to increase a padding-top. Place the code in Theme panel->Custom Css.
.td-header-menu-wrap.td-affix {
padding-top:15px;
}
Hope this helps and let us know how it goes!
Thank you!
Hello,
If you want to change all of the link colors from yellow to something else, it can be changed from the theme panel: http://screencast.com/t/mP6aRe2GKS
This will change every link color but also the block headers.
If you only need to change the titles, then you can use css. Quite a bit of it.
This would be the css to change all the links to red:
I hope this time it’s the good one.
Thanks.
I looked in the header section of the theme panel but couldn’t find an option. Pls advice.
Thank you.
Hi Bogdan,
I needed it because I’ve put a header inside an iframe and clicking a Menu link, the page within the iframe,
If anyone needs… I’ve solved putting in header.php
<base target = “_ top”>
Thanks very much for your help,
Hi Bogdan,
Headerstyle 8 is the one we both use.
I cannot mess with the live site they have 700 to 1000 real-time visitors on it at any time during the day. What I will do is setup a dev url then submit so that you can see.
Thanks
Hello,
I’m not sure why your logo size changed but you can use this custom css to get it to display the same size as the default header logo:
@media (min-width: 768px){
.td-header-wrap .td-affix .td-main-menu-logo img {
max-height: 80px !important;
}
}
Thank you!
Hello,
I’m not sure why this occurs, we have no issues with the update hiding the logo. We have no other reports of this and it did not hide the logo on our end. Is there a specific header style that does this? what header style do you both use? try a different one to see if all the header styles get affected.
Thank you!
You can create a text block in the page grid, or a simple sidebar box, to put an h1 wrapped short description of your site.
h2 is usually only for sub-heads, like a large section header. But not necessary, semantically. But you could add a new “row” to a section of elements with something like “Music News” wrapped in h2.
Only have *one* h1 on home page.
Hm. It “looks” like a tracking code; like you’d see in Google analytics, Google ad, affiliate program, or simliar.
When you look at your page source you can see it looks like it’s part of some script placed in your header, but missing part of the code …
UA-71280683-1<noscript>
So, likely want to double check your theme panels for the custom CSS, custom Javascript, check the ad panel, and turn OFF any plugins which write anything to the header. Double check your YOAST SEO settings you didn’t put some code in there incorrectly as well.
UA = often short for user accountm, user analytics, etc.
Try to setup the slideshow on my homepage, have setup everything like documentation tell. Even disable all my plug-ins to make sure it is not an conflict. I have made an template with one slide (more comes..). Then I create an page and pick the template I have made from the dropdown menu in page settings. Then I save and open the page to see the result, but no slideshow. Why? When I create a slideshow and set in the shortcodee the slideshow comes up, but cover the sidebar and other element since I choose fullwidt I supose. Have set in the tag #header in the field “Offset Containers:”. Please help me with this issue.
@mboydnv
I do agree on being a bit against the “bloated one plugin for all” concept. I used to hate YOAST. We used to build our own themes, or hack things like Canvas to add custom if/then and queries for meta data in our headers. Yoast simply made it easier for us to deploy and add some things more quickly. But it has gotten a bit big and bloated and every major version it crashes and burns. I certainly don’t think it’s the only game in town, but it does work for a lot of folks. Of course, we’re using some other things on some sites, just because they’re smaller and work as well.
As for canonical tags — the reason they are useful for many sites, is for things like the pending /amp/ protocol from Google rolling out in 2016 to speed up mobile pages separate from things like mod_pagespeed or http/2 (previously inclusive of mod_SPDY). So, for example mobile accelerated pages will soon be loaded as so:
yoursite.ooo/name-of-my-article/amp/ — in this context, the canonical tag is useful to identify the /amp/ version is not another page, but an alternate “version” of the same page.
In our case — I should have stated — we syndicate our news from some sites, and the canonical tag helps identify we did it first, and when we link back to the parent page from the child syndicator.
Also be aware that article on MOZ is from 2013, and going into 2016, the canonical tag is more mature now.
However, you are correct — if you have no duplicate versions of content, if you’re not dealing with malformed inbound links to your site like /site/name-of-article/?12hy6 — where Google is saying you have duplicate content for too many 404 errors — then you may not need it !!
In our case, it helps control inbound malformed links from external sites, and also because with modern social media you have a dozen sites inventing their own links to your website page; meaning FB, Twitter, LinkedIn, etc. all use a shortcode in some case to link to you, and the canonical can help identify that the URL on your site is the de-facto CORRECT one, even though it should be self evident being on your site.
I’m not arguing you need to have them, just saying they are useful and do NOT hurt inbound traffic in any way. Just like adding a default img tag, or an author tag, or other meta data; it’s read by those systems that have use for it, and other things ignore it.
Anyway — just some food for thought 🙂
Hi there,
I had to modify the style.css file of my Newsmag-child theme in order to get padding at the top of my site page to fit the background skin image because, otherwise, the left and right top header menus (please see http://352.be7.myftpupload.com/) would be overlayed by the skin background image.
So that I’ve applied the following modifications to style.css:
.td-header-container {
width: 1021px;
margin-right: auto;
margin-left: auto;
position: relative;
/* responsive portrait tablet */
/* responsive portrait phone */
margin-top: 95px; /* Row added for padding needed for background skin image */
}
@media (min-width: 768px) and (max-width: 1023px) {
.td-header-container {
width: 756px;
margin-top: 55px; /* Row added for padding needed for background skin image */
}
}
@media (max-width: 767px) {
.td-header-container {
width: 100%;
margin-top: 0px; /* Row added for padding needed for background skin image */
}
}
Is there a way to apply this upper padding only when a background skin image has been set and to remove padding when no background skin image has been set without changing the style.css file everytime by hand? Otherwise a ugly blank padding is displayed when no background image is set (please see 43b.60a.myftpupload.com/)
Thanks a lot for any help or advice,
Giuseppe
Hi
I’ve tested this on my side with the latest theme’s version, V6.6.2 and the logo it’s displayed fine on header style 8: http://screencast.com/t/AGf3QxItx1J Please make sure that you updated the theme according with our documentation: https://forum.tagdiv.com/how-to-update-the-theme-2/ clear all caches, deactivate the child theme and test again.
Let u know how it goes.
Thanks!
Hi,
I use Contact Form 7 plugin in order to get the contact form (please see 43b.60a.myftpupload.com/contatti/). To avoid to get extra CSS and/or JavaScript file on every page of my site, I’ve followed this guide http://code.tutsplus.com/articles/optimizing-contact-form-7-for-better-performance–wp-31255. This way I should get the CSS and Javascript of Contact Form 7 plugin loaded only into the page where the form is really placed.
So that I’ve created a new functions.php file of my Newsmag-child theme which contains only the following code:
<?php
/*
GSM:file functions.php of the Newsmag-child theme
*/
if (!function_exists('aa_deregister_styles')) {
// Deregister Contact Form 7 styles
add_action( 'wp_print_styles', 'aa_deregister_styles', 100 );
function aa_deregister_styles() {
if ( ! is_page( 'contatti' ) ) {
wp_deregister_style( 'contact-form-7' );
}
}
}
if (!function_exists('aa_deregister_javascript')) {
// Deregister Contact Form 7 JavaScript files on all pages without a form
add_action( 'wp_print_scripts', 'aa_deregister_javascript', 100 );
function aa_deregister_javascript() {
if ( ! is_page( 'contatti' ) ) {
wp_deregister_script( 'contact-form-7' );
}
}
}
?>
But, after this I got the following error:
Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas10_data03/26/2630926/html/wp-content/themes/Newsmag-child/functions.php:26) in /home/content/p3pnexwpnas10_data03/26/2630926/html/wp-includes/pluggable.php on line 1207
What I’m doing wrong?
Thanks
Giuseppe
Hi
First you need to replace the code from header-style-7.php with this one: http://pastebin.com/DHghLL1M – http://screencast.com/t/aQuTfCPtB Then you need to add this css in theme panel > custom code > custom css: http://screencast.com/t/1Zxhvv8UcfO
.img-left {
float: left;
width:20%;
padding-left: 10px;
padding-top: 10px;
}
.img-right{
float: right;
padding-right: 10px;
padding-top: 10px;
}
.td-header-style-7 .td-header-sp-logo{
width: 60%;
}
Let me know how it goes.
Thanks!
How to maintain the header/menu (same logo size and everything) even when scroll down?
Hi
I’ve checked your site and the header it’s full width now: http://screencast.com/t/BoAsRyZcf Please note that if you’re using a background image the theme switch i boxed layout and this affect and the menu: http://screencast.com/t/sz0YePPPGfI
Thanks!
Hello,
The logo is gone/missing after update.
I found this
.td-header-style-8 .td-header-menu-wrap-full .td-header-sp-logo {
display: none;
}
The logo is correctly set in theme options, nothing changed other than update and we are using a childtheme.
Site thesouthafrican.com
Hello,
I have exactly the same problem. Did an update on Saturday and today, the logo is missing…
How did you resolve it?
I also found,
.td-header-style-8 .td-header-menu-wrap-full .td-header-sp-logo {
display: none;
}
The ONLY thing that changed on the site was update to the theme.
Hi,
I would like to display a leader board in the header as per this example…
http://themeforest.net/item/newspaper/full_screen_preview/5489609
Could you tell me what the menu setting is for this as currently I can get it below the logo – http://www.acrvmag.com.au/ but not aligned to the top right as per the example page.
Thanks,