- 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
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- ApiAPI – Top Bar Template – Introduction
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- ApiAPI – Single Template – Introduction
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- ApiAPI – Footer Template – Introduction
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
You have to add a CORS instruction at your CDN for “cross domain” loading of fonts.
so you need to add this to your htaccess setting at your CDN:
# Apache config
<FilesMatch ".(eot|ttf|otf|woff)">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
nginx
location ~* \.(eot|otf|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
See the support for your CDN on how to do this.
Alternately, you can load the fonts locally for the icons.
Hope that helped. See FAQs for your CDN as they should have help on this.
-
This reply was modified 10 years by
simchris.
[Sat Sep 12 09:53:53.204235 2015] [:error] [pid 11570] [client 66.249.65.187:62362] PHP Fatal error: Call to undefined function get_header() in /nas/wp/www/cluster-40900/xtra/wp-content/themes/Newspaper/index.php on line 6
I just put my site live yesterday at observerxtra.com
Site worked great except for a few hiccups when I launched the CDN through wpengine.com. This morning the fonts for the icons and social media have either boxes or asian characters. The error posted above came up in the logs. I’m hoping someone has a solution for me. I’m not super technically savvy. I read about solutions regarding adding code to htaccess — this apparently is a known issue. Could someone be more specific as to what and where to put new code.
Thanks in advance
Pat
Hi,
Is there a restriction on how many google ads can be on a homepage? I have a header ad, then using visual composer I added under menu a billboard ad, left side bar a 300×250. Finally there is a footer ad. If I add an ad a section above the recent post section, then the footer ad won’t show.
Is this normal?
http://www.diananashif.com/C50/
Thanks for your help
Diana
Hello again,
Thanks for the previous assistance. We’ve noticed that the navbar’s width isn’t 100% on width, upon doing research, I stumbled across this website and the illustration in the page nailed what I want to do (http://www.cssnewbie.com/full-width-centered-navigation-bar), i.e. the navbar’s width is the same as the page’s width. I was wondering if this is possible as for the navbar as well as for the header?
Thak you!
Hi,
I disabled all the plugins, but it didn’t work and the mobile menu is not working. I also don’t use visual composer plugin. The only modifications we have done are in header.php and footer.php and they are only the codes for advertisements.
Please advise,
i add the code where you tell me and i add after in admin the code from dfp in header ads
<!– Ma_728x90_PQ –>
<div id=’div-gpt-ad-1379702677181-0′ style=’width:728px; height:90px;’>
<script type=’text/javascript’>
googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-1379702677181-0’); });
</script>
But the header come black and we lost the logo , you can look here
This was my reply:
Hi,
Please use our theme’s documentation on this how to import/use theme’s demos: https://forum.tagdiv.com/introduction/ – https://forum.tagdiv.com/installing-demos/
If you just need to setup the homepage, use the codes and guidance Alin given you on the forum and build the page using the page builder of the Visual Composer plugin. You can find a tutorial on how to use the VC plugin here: https://forum.tagdiv.com/how-to-use-visual-composer/Not sure what you mean by: “Seems like i have to use a plugin for header and footer scripts?” so please give us more detail on that. You can find more details on how to customize header and footer sections in our docs: https://forum.tagdiv.com/header-styles/ – http://screencast.com/t/hfWaYdOeu9Sr – https://forum.tagdiv.com/footer-templates/
Please use those docs then let us know if you still need additional informations and give us specific details of what you need/want to do.
If you’re still not familiar with the theme and how to sue it I suggest you setup a testing wp install then import theme’s demo and using theme’s docs go trough its settings. Would help you in your site’s development. We also provide video tutorials on YouTube so my advice is to watch them here: https://www.youtube.com/watch?v=o7JSltCqpCI&list=PL6CsDkMaejhrfEuAth6JVYLPmFwFzNFwY
Thanks for the message!
Lucian C. tagDiv!
Hi,
You can replace the theme default search in header-menu.php file(and implement you code) – http://screencast.com/t/Zj4Xuv7O You may need additional css customization, so I suggest to hire someone to do this for you if you don’t have basic css/html experience as we cannot provide custom work at this time, sorry!
Thanks!
-
This reply was modified 10 years by
Alin [tagDiv].
Hello Paul,
Our theme has adsense support and it can be applied from the theme panel:
You can chose a header style that allows a banner above your menu https://forum.tagdiv.com/header-styles/
If you want to use other ads you can read this section: https://forum.tagdiv.com/using-other-ads/
If you are talking about a logo, not an ad, you can set it like this:
http://screencast.com/t/oVNptpYKhjW
You can also read our documentation: https://forum.tagdiv.com/logo-favicon/
Thank you.
I’m sorry if this is long winded but if anyone can provide any feedback whatsoever it would be much appreciated!
I’m basically in the process of trying to skin phpBB by extracting the contents of the Newspaper theme header and footer using a similar technique to this (very old) video: https://css-tricks.com/video-screencasts/48-skinning-phpbb/
What I have done so far is create a new php file that ‘includes’ wp-blog-content.php and the header.php file. I then run a cron job using curl to scrape the file and output to a HTML file. See: http://forums.panorev.com/styles/prosilver/template/header-wrapper.html
The problem I’m having is with the CSS mega menu not displaying correctly. I believe all the code that’s required is loaded in, but I’m not having any luck, possibly jQuery issue. I’ve extracted parts of the HTML and put it into the phpBB overall_header.html file and the CSS menu isn’t working. I’ve further complicated it by hosting the main site http://panorev.com using WPengine, and having the forums on a separate hosting provider on a subdomain http://forums.panorev.com … I am trying to prove this will work before deciding if I will go the phpBB route since it is a robust forum solution.
Does anyone have any experience with such a task? Can anyone definitively say that my problem is likely to be that I’m using two different hosts to try and load the menu as the JS and CSS is being called across domains? Anything else to add?
Failing this, I’m probably going to look at another forum solution, as I really wanted something that people are used to that I can run with lots of features. I have read over the years that bbPress isn’t really up to scratch… has anyone tried Simple:Press?
Thanks in advance for any advice!
Hello Popped,
1. You can eliminate the “gap” by making the site boxed. Just add a background image or color (even white) and the site will be made boxed: http://screencast.com/t/ND1EPkg5kn.
to remove the shadow image add this custom css to the theme panel -> custom css:
.td-header-gradient:before {display:none;}
2. You can add an image to the header using this code (i assume you are using header style 9):
.td-header-style-9 .td-header-sp-logo {
background: white url('http://imgscenter.com/images/2014/09/13/Beauty-of-nature-random-4884759-1280-800.jpg') no-repeat;
background-size:cover;
}
the result: http://screencast.com/t/GmDrXVsxijx
3. The shrinking menu animation from the website you mention is custom built and requires quite a bit of coding. Unfortunately we cannot offer any custom work. You can hire a freelancer to do it for you from sites like http://studio.envato.com
Thank you.
Seems like i have to use a plugin for header and footer scripts?
Hi I have a problem since I bought the theme puedover not ads in my header and sidebar code is as follows:
<async script src = “// pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”> </ script>
<! – Header ->
<ins class = “adsbygoogle”
style = “display: inline-block; width: 728px; height: 90px”
data-ad-client = “client”
data-ad-slot = “6890445916”> </ ins>
<script>
(adsbygoogle = window.adsbygoogle || []) push ({}).;
</ script>
where this error
Thank you Chris,
I used your custom code but it removed all feeds.
Then, I added this code manually in header.php
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
It looks nice.
-
This reply was modified 10 years by
doran.
Hello,
We have no experience in CSS or anything. We’re working on a news website and we thought of some things. Just want to ask some questions regarding header:
1. How are we supposed to remove the gap outside the header and navigation bar (see: http://i.imgur.com/smjDBu1.png)? If possible, we would like to remove the shadow too; we like it flat and borderless.
2. Can we add an image on the background of the header? Something similar to this: http://sports.abs-cbn.com/
3. Finally, can we add an animation when the navbar shrinks similar to the website previously mentioned? We feel like the transition is just too abrupt.
We’re sorry if we’re asking these questions as if we don’t know a thing or two about web design. We’re writers and whatever we’ve done with the website so far, we’re just doing it based on research.
Thank you.
Popped!
Hi I bought the theme Newsmag and I failed to see the ads created in my adsense account. put the code that gives me google but the header and sidebar even in the post only look blanks. Reinstall WordPress Host Account (copanel) FTP then the full theme and demos and in no time I see them. I will be doing wrong
Try this code. it should work and display full content.
@media (max-width: 767px) {
.td-header-top-menu-full, .td-header-top-menu-full .td-header-sp-top-menu {
display: block !important;
}
.top-header-menu li a {
font-size: 12px !important;
margin-right: 5px;
}
}
Thank you
P.S. if you want to remove the social icons you can add
.td-header-sp-top-widget{
display:none!important;
}
before the last closing curly brace
Hello Bogdan!
Thanks. I need full content – http://screencast.com/t/TXZeKqUbxqyY. Social links are not so important so they can be hidden, but important are other links in top menu.
I added this CSS:
@media (max-width: 767px) {
.td-header-top-menu-full
.td-header-sp-top-menu {
display: block !important;
}
.td-header-topmenu-full {
display: block !important;
}
}
But no effect. Did I miss something? Thanks
Best regards.
R.
Hello thrivehl,
Try to change the title of the header. The default one will not work. Headers won’t appear until you give them a new title. This applies to every block. You have to use your own titles for them to show up.
Thank you for your message.
Hi,
You need to add the script in theme’s header file before the closing head tag: http://screencast.com/t/H2kT8kFIE
Thanks for the message!
Hi,
The articles ads are placed in the content(get_content function), and the function is defined here – http://screencast.com/t/VQCmUU7Y This function is used in post templates – http://screencast.com/t/8EyWM8dCb
You can add a condition to block them on a specific post using is_single() function, check this topic as reference – https://forum.tagdiv.com/topic/disable-ads-on-particular-posts/
If you want to remove all the ads from your post(including header), you can try to add a condition like this(just add you post ID) – http://screencast.com/t/Yo7c5lffhOfN
if(!is_single('ID'))
You can read more about is_single function here – https://codex.wordpress.org/Function_Reference/is_single
To create a post template, please take a look at theme templates(loop and single) and use that structure, please check the official documentation – https://codex.wordpress.org/Post_Types#Custom_Post_Type_Templates
Thanks!
Hello Schuchi,
If you use google adsense you should not have this problem, but for a ‘custom ad’ try adding this CSS in your theme panel as it needs a bit of adjusting:
.td-header-style-7 .td-a-rec-id-header > div {
display: table;
}
http://screencast.com/t/FnDaxgFwmfPv
Thank you.
Hello sg123321,
This is the default state of the theme: http://screencast.com/t/m5a1NmV1. This is header style 9 (the one you are using).
There is another header style with a centered menu: http://screencast.com/t/j1NTk8Ym8B5 ->header style 10
This should resolve your problem.
Thank you
Hello pandian,
As i see it, you have the same thing set up as the other site, just that the homepage is different (not in the menu). When you access the ‘interesting on the internet’ category, the “underline” will be active. If you place a homepage link(button) in the menu, it will have an active border as well just as the other site.
If you truly want it like you said, for the category (‘ioi’) to be highlighted in the homepage you can add this custom css in the theme panel->custom css field .
I’ve also positioned your logo to your specifications. http://screencast.com/t/fR4tKRkg
.td-header-style-1 .td-header-sp-logo {
margin-left: -10px;
}
.home .menu-item-first a:after{
background-color:#4db2ec!important;
}
Thank you
This only happens in the homepage. I made a page and made that my homepage, following the directions from tagDiv. The Social counter header does show up on other places other than the homepage where I use the WP sidebar.