- 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
Hi,
1. This is the menu: http://screencast.com/t/WhP5E5Ny an you can set a background color for it from theme panel > theme colors, like this: http://screencast.com/t/ATvlTvxVB
2. That happens because of the height of the logo which needs to be at 80px maximum height. You can fix this via css and use the css from below in theme panel > custom css filed: http://screencast.com/t/JNxk7GFpql
Use this css to fix the third problem:
@media (min-width: 1200px) { .td-header-style-8.td-affix .td-style-8-logo-wrapper .td-logo {
max-height: 80px !important;
}
.td-header-style-8 .td-style-8-logo-wrapper .td-logo {
max-height: 80px !important;
}
.td-header-style-8 {
height: 76px !important;
}
}
/* responsive landscape tablet */
@media (min-width: 1019px) and (max-width: 1200px) {
.td-header-style-8.td-affix .td-style-8-logo-wrapper .td-logo {
max-height: 50px !important;
}
.td-header-style-8 .td-style-8-logo-wrapper .td-logo {
max-height: 80px !important;
}
}
/* responsive portrait tablet */
@media (min-width: 768px) and (max-width: 1018px) {
.td-header-style-8 .td-style-8-logo-wrapper a img {
max-width: 140px !important;
}
.td-header-style-8 .td-style-8-content-wrapper .td-head-style8-logo-desktop {
display: block !important;
}
}
/* responsive phone */
@media (max-width: 767px) {
.td-header-style-8 .td-style-8-content-wrapper .td-head-style8-logo-desktop {
display: block !important;
}
.td-header-style-8 .td-menu-wrap {
height: 48px !important;
}
}
Thanks
Hi,
You will have to set a logo from here: http://screencast.com/t/vUxxBd9C
Or if you ask about how to add a background image for the header you can do it like this: https://forum.tagdiv.com/topic/header-image-3/#post-24274
Here are more info about how to create your header: https://forum.tagdiv.com/header/
Thanks
Hello Sirs,
sorry to bother again: I really like the Idea of your Ad-System in general and in special the Content Ads! Ads are very important for refinancing a website! So, this is a great feature!
Of course not every suggestion must make common sense: But I would really think it would make much sense to improve „usability/functionality“ of your Theme, if you implemented a Filter for your Content Ads System.
Problem:
The „Content Ads“ is a great feature! But having Ads inside the Content can also be:
1.) very distrcting for users (=> so you want for shure some pages, WITHOUT any Content Ads!!)
2.) you might have to adjust the ad to the content. For example you want to filter for specific words in the content and then show different ads. Or show no ads at all. Or target the Ad to the advertiser. (For example like content about death and you do not want to put ads at all into this context.)
3.) For a lot of Custom Content Types showing ads might not make sense at all: (for example a custom content type „Jobs-Offer“, that should not be cluttered with ads).
=> But currently you can only disable the Content Ads in general but not on a more finer level… This is very sad, as I really llike the feature but I can only completely disable it.
Solution:
The most easiest solutoin is (though there are other solutions more complicated, even options that might be added to your Admin-Panel) just simply having a filter Hook, that allows a developer to hook into and manipulte the ads (do not show ads at all or alter the AdCode. This is ONE line of code, but improvies your theme by a magnitude! Would be kind if you comment, what you thinkg about this idea!
Benefits (you can use for marketing)
-More Developer friendly
-Helps Newspaper become a real plattform, as it can easyly be extended
-Can really make the Ads System in general much much much better (one can implement filters, intelligent ad logic and so on)
…
Add this one line
$ad_array = apply_filters( 'td_ads_ad_array', $ad_array ,$atts);
Into td_ad_box.php:
Note:
This can of course be improved. I have not looked that much into your code… the above is the minimum to fulfill basic needs)
But with this one line I was able to change the working of your ad system in a lot of ways! This is of course just intended ad proposal, please change/improve it to your liking (I do not know your coding/naming standards …Its just the way I use it currently)
Example Copied from your source, with the code added:
/**
* renders the ads
* @param $atts
* @return string
*/
function render( $atts ) {
extract(shortcode_atts(
array(
'spot_id' => '', //header / sidebar etc
'align' => '', //align left or right in inline content
), $atts));
if (empty($spot_id)) {
return;
}
$ad_array = td_util::get_td_ads($spot_id);
//ADDED FILTER!!!
$ad_array = apply_filters( 'td_ads_ad_array', $ad_array ,$atts);
// return if the ad for a specific spot id is empty
if (empty($ad_array[$spot_id]) or empty($ad_array[$spot_id]['ad_code'])) {
return;
}
$buffy = '';
if (!empty($ad_array[$spot_id]['current_ad_type'])) {
switch ($ad_array[$spot_id]['current_ad_type']) {
case 'other':
//render the normal ads
$buffy .= $this->render_ads($ad_array[$spot_id], $atts);
break;
case 'google':
//render the magic google ads :)
$buffy .= $this->render_google_ads($ad_array[$spot_id], $atts);
break;
}
}
//print_r($ad_array);
return $buffy;
}
Hi,
My site can be found here – http://getgaining.com/
Problem 1: I currently have “Transparent Header” toggled off, yet the header is still transparent.
Problem 2: There appears to be a second line atop the page, below the header. I’m not sure why it’s there or what it is. It doesn’t appear in any of the demo themes I see on your site.
Problem 3: My logo hangs slightly out of position.
I’ve taken screenshots of the problems here – http://imgur.com/a/LDdj1
Please let me know how to solve these as soon as you have a couple minutes to spare.
Thank you for your time.
Ok, Lucian,
thanks a lot, I think I’m almost ok!
I just need to understand where I can set a picture for diaplaying in the header?
thanks a lot again! I start understanding how the theme works!
Elena
Hi,
You need to add posts into your featured category as the slider from the “homepage – bg – loop” template which you are also using displays the posts from the featured category.
You can also edit the page-homepage-slider.php file and change this sorting option from there. You can read more about this here: https://forum.tagdiv.com/topic/big-slider-2/
Also noticed that you have some issue with the banner on your homepage, use this css to fix that: http://screencast.com/t/4KjlFgZXs
.header-content-rec .td-g-rec-id-header {
margin-bottom: 45px;
}
Thanks
Hi,
Yes, you can do it via css, like this: http://screencast.com/t/3UmS0GY2fj
Use this custom css in theme panel > custom css field, like this: http://screencast.com/t/negqr7clya
.post-style-3-video-post .wpb_video_wrapper {
margin-bottom: 100px;
}
.post-style-3-video-post .post header{
bottom: -120px;
}
.post-style-3-video-post .post header .entry-title {
color: #222222;
}
.post-style-3-video-post .post .td-image-gradient:before {
display: none;
}
Unfortunately you will need custom work to customize the theme to work with other types of video and edit the td_video_support.php file and add support for your videos: http://screencast.com/t/eKiALEuD
Thanks
Hi,
1. The top black area which display’s the categories is the top menu which you can set it from here: http://screencast.com/t/ajxpZbJ7Amz
This is what each area represent’s: http://screencast.com/t/4sTOJuha
Please note that the top-right social area hasn’t been designed to work with that subscription widget you use, you can use the tagdiv login form widget there: http://screencast.com/t/byS56zrq45nc
2. This happens because you have set the menu which contains this categories to the top menu and the main menu also, you can change this from the appearance > menus panel like shown in the screenshot above.
3. You can hide the top menu from theme panel > header section or you could also set it from there or you could chose not to show a menu, like this: http://screencast.com/t/fpkmbVLn2SSg
You can also find this info in our documentation, you should take some time and go trough it as you will find more useful information about how to use the theme an it’s features.
Here is the menu section doc: https://forum.tagdiv.com/menu/
Thanks
-
This reply was modified 11 years by
Lucian.
Hi,
Thanks for reporting this, we know about this bug and we have it on our issue list and we will fix this on the next theme update.
You can use this css to add margin to the banner and fix this: http://screencast.com/t/vXAPJcaojKvl
.single .td-a-rec-id-header {
margin-bottom: 50px;
}
Thanks
PLEASE HELP! I followed this advice in a forum and now my site has a fatal error…
Fatal error: Call to undefined function wp() in /home/content/53/11790153/html/smag31/wp-blog-header.php on line 14
I don’t know what to do
1. Open /wp-config.php
Now the first thing you need to do is to open the wp-config.php file from your WordPress root folder (you may access this file from your WordPress installer folder). From the installation folder, the file is located at wordpress/wp-config.php
2. Insert FS_METHOD
Paste the following code to your wp-config.php file, preferably just below every other line of code.
define(‘FS_METHOD’,’direct’);
FS Method
3. Save and upload
When you have already pasted the one-line code, you can proceed to upload the file to your WordPress root folder on your server, and it should work right away. Uploading can be done directly from your host control panel.
First of all, thanks for the great theme and awesome support, keep up the good work. I didn’t had any issues so far, and that’s unique for a WordPress theme:-).
I found a little bug, I think, with the ad display above the articles, using headerstyle 3 and posttemplate 3. There’s a little overlap with the featured image, only on single post. The homepage is displayed correctly. I use a little custom CSS (found here) for center the menu.
#td-top-menu .sf-menu {
display: table;
float: none;
margin-left: auto;
margin-right: auto;
}
Screenshot: http://awesomescreenshot.com/06d3tlwi77
live: http://goo.gl/h8oynw
Suggestions are welcome!
I chaged it 😀
<a class=”td-social-sharing-buttons td-social-pinterest” href=”http://www.stumbleupon.com/submit?url=’ . get_permalink() . ‘” onclick=”window.open(this.href, \’mywin\’,
Now I just have to found a way to move the entire bar into the header or upper..
Hi,
1. Please send your site’s URL and provide more details about this. Where do you want your site’s title?
2. edit the menu-header.php file and remove this code: http://screencast.com/t/FrJFERhCTh and also make sure that in the same file you also change this div’s class to span12, after removing the search icon code, like this: http://screencast.com/t/dMX9V2ufy3MN
3. Use this custom css in theme panel > custom css filed: http://screencast.com/t/oUOpJIGL
.td_normal_slide .td-sbig-title-wrap, .td_normal_slide .slide-meta {
display: none;
}
4. We have this on our todo list and we are trying to fix this in future updates, until then you can set an custom excerpt for the posts you have this issue with using the excerpt filed from post editing panel: http://screencast.com/t/dICA2rNDw
Thanks
Hi.
Please see the image: http://i.imgur.com/8Dkh6vm.png
How do I decrease that space slightly which has been indicated?
Thanks
Yep, using a child theme, finally realized the culprit was a non-updated header.php. *facepalm*
Why is it that 7 hour code expeditions that never yield results are always 2 second fixes in the end? 🙂
Thanks a ton Lucian. Mobile menu sliding smooth as intended now.
Ok, find by myself.
.header-style-3 .container-fluid { text-align: left !important; }
Hello I use the header style 8, and currently there is display error in quick search results, which can be seen in the image 
Furthermore the icons of comments and views are not displayed. I’ve tried some basic tricks css but nothing worked very well.
The weirder than another heading style works well but without icons also.

Is that the theme is wonderful, I will not be a big problem for you to fix this small error due to the professionalism of you, thank you.
Hi,
Is it possible to left align my logo in using header style 3 ?
Thanks.
Hi guys,
I’m getting on GTmetrix this “High priority” error to fix:
“Add Expires headers”:
There are 2 static components without a far-future expiration date.
http://fonts.googleapis.com/css?family=Roboto+Condensed%3A400%2C700%7CArimo%3A400%2C700%7CRoboto%3A400%2C700%7CChivo%3A400%2C700%7CAlex+Brush%3A400%2C700%7CRokkitt%3A400%2C700&ver=4.0
http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700?ver=4.4
Aren’t these part of the theme? Any way to fix that?
Thanks!
Hi,
I found the solution here: https://forum.tagdiv.com/topic/show-categorie-name-in-latest-articles/
You can see the result here: http://imagespourapprendre.com/
What I would like is to have the exact same display as in post headers, that is the category background color, font color and space between category and author just like here: http://imagespourapprendre.com/2014/10/plug-it-on-the-window/
Should I edit the get_category function or customize some css? Could you please help?
Thanks a lot!
Sam
Hi,
This happens because you try to access the theme’s index.php file directly and this is caused by the theme’s inability to locate the WordPress get_header function as it dose not passed trough WordPress when the request is made and in that case the function doesn’t “exist”.
You can read more about this and also have a solution for this here: http://ardamis.com/2011/06/02/fix-for-php-fatal-error-get_header-in-wordpress/
Thanks
Hello, I have this error happens on my server on localhost
Fatal error: Call to undefined function get_header() in /home/planetat/public_html/wp-content/themes/Newspaper/index.php on line 6
http://tutarotistaonline.com/wp-content/themes/Newspaper/
what’s this? how can I fix it? thank you very much
Hola Jorge, gracias por estos vídeos. Una consulta en particular. Necesito que el espacio para publicidad en el header a la derecha del logo pueda publicar dos widgets, uno al lado del otro. Es decir, dividir el espacio horizontal para que en vez de uno se puedan publicar dos widgets. Espero ser claro. Abrazo
Newspaper theme is loading jQuery script in footer instead head. I need the script in header because of one of my plugins requirements. I am using tagdiv speed booster plugin. Please guide me how can i enable to lead jQuery in header.Thanks
hi, here is one of the plugins I mentioned which is supposed to help with tracking down where all the dbase queries are going … I’ve started using this recently to double check myself on stuff:
WORDPRESS QUERY MONITOR PLUGIN:
https://wordpress.org/plugins/query-monitor/
Query Monitor is a debugging plugin for anyone developing with WordPress. It has some advanced features not available in other debugging plugins, including automatic AJAX debugging and the ability to narrow down things by plugin or theme.
Here’s an overview of what’s shown:
Database Queries
◾Shows all database queries performed on the current page
◾Shows affected rows and time for all queries
◾Show notifications for slow queries and queries with errors
◾Filter queries by query type (SELECT, UPDATE, DELETE, etc)
◾Filter queries by component (WordPress core, Plugin X, Plugin Y, theme)
◾Filter queries by calling function
◾View aggregate query information grouped by component, calling function, and type
◾Super advanced: Supports multiple instances of wpdb on one page
Filtering queries by component or calling function makes it easy to see which plugins, themes, or functions on your site are making the most (or the slowest) database queries.
Hooks
◾Shows all hooks fired on the current page, along with hooked actions and their priorities
◾Filter hooks by part of their name
◾Filter actions by component (WordPress core, Plugin X, Plugin Y, theme)
Theme
◾Shows the template filename for the current page
◾Shows the available body classes for the current page
◾Shows the active parent and child theme name
PHP Errors
◾PHP errors (warnings, notices, stricts, and deprecated) are presented nicely along with their component and call stack
◾Shows an easily visible warning in the admin toolbar
Request
◾Shows matched rewrite rules and associated query strings
◾Shows query vars for the current request, and highlights custom query vars
◾Shows the queried object details (collapsed by default)
HTTP Requests
◾Shows all HTTP requests performed on the current page (as long as they use WordPress’ HTTP API)
◾Shows the response code, call stack, transport, timeout, and time taken
◾Highlights erroneous responses, such as failed requests and anything without a 200 response code
Redirects
◾Whenever a redirect occurs, Query Monitor adds an X-QM-Redirect HTTP header containing the call stack, so you can use your favourite HTTP inspector to easily trace where a redirect has come from
AJAX
The response from any jQuery AJAX request on the page will contain various debugging information in its header that gets output to the developer console. No hooking required.
AJAX debugging is in its early stages. Currently it only includes PHP errors, but this will be built upon in future versions.
Admin Screen
Hands up who can remember the correct names for the filters and actions for custom admin screen columns?
◾Shows the correct names for custom column filters and actions on all admin screens that have a listing table
◾Shows the state of get_current_screen() and a few variables
Environment Information
◾Shows various PHP information such as memory limit and error reporting levels
◾Highlights the fact when any of these are overridden at runtime
◾Shows various MySQL information, including caching and performance related configuration
◾Highlights the fact when any performance related configurations are not optimal
◾Shows various details about WordPress and the web server
◾Shows version numbers for all the things
Everything Else
◾Shows any transients that were set, along with their timeout, component, and call stack
◾Shows all WordPress conditionals on the current page, highlighted nicely
◾Shows an overview including page generation time and memory limit as absolute values and as % of their respective limits
Authentication
By default, Query Monitor’s output is only shown to Administrators on single-site installs, and Super Admins on Multisite installs.
In addition to this, you can set an authentication cookie which allows you to view Query Monitor output when you’re not logged in (or if you’re logged in as a non-administrator). See the bottom of Query Monitor’s output for details.