- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
Do I have to do it on every new page…?? Can’t I do something by which ads can come on pages & I have the option to disable them on few pages…
Thanks for help but I d not want it to manually enable it on each new page rather I want it to be by default checked when I click on New Page…& for Chris S, Yes I have enabled Comments on settings-Discussion.
Chris S
I know you don’t worry there and this may be a little out of place here, but then could be theme related – hope you don’t mind the question should you see this.
I’m getting lots of AMP error in Search Console, using Yoast SEO latest plus WP AMP (No PageFrog) but out of all indexed pages – 74 show errors – 14 are ok
I’ve seen your post on a related question on .org as you seem to be the only person who understands it!
They are all ‘Prohibited ‘tag’ and ‘Unknown Syntax error’ – wouldn’t the plugin serve the correct error-free format? Or do I need to do something different – again I’ve read your other posts but lack the skills (I think) to fix
Thanks
Pat
Thanks. I’m clear on #2.
For question #1, I’m referring to the image inside the blog post, not the background image.
In this example:http://demo.tagdiv.com/newsmag/td-post-8-infinity-pools-you-have-to-see-to-believe/ blog image #1, 4, 5 doesn’t extend to the border… but blog image #2, 3 extends to the border.
I would like it to extend to the border.
Hello,
we are using Newspaper for displaying video’s in posts. Every time we add a video from for example YouTube, around 25 images for this video are uploaded in the /upload directory. We now have 1100 video’s and we have more then 27.000 images. We estimate that we need to import 25.000 video’s. This means 625.000 images on our file system.
Is there a way to reduce this? Has this to do with the 13 Post Templates in the Newspaper theme? If yes, can we disable in some way some Post Templates, wo only use 3 or 4 templates.
Thanks,
Jos
How is it possible to add an universal text below all posts? For example, all posts in businessinsider.com.au have this text:

Hi
1. You don’t need to create a full width image for post’s background. On the previous example from our demo we set this image: http://demo.tagdiv.com/newsmag_fashion/wp-content/uploads/2014/09/fashion-bg.jpg as a background image for fashion today category. By setting a background image for a category all posts from that category will have that image as background.
2. You can use this text formats to obtain a bigger margin on left and right side of post content: http://screencast.com/t/ioBYIWhkd – http://screencast.com/t/Pww0NKtIo
Thanks!
Hi,
I have an event post type. In addition, I have custom fields. I would like to search these fields.
Normally, this would be ok but unsure how to do it on Newsmag. How do I amend the search facility for a specific post type so it filters what people choose? This is what I have so far but I would like to expand the current search facility
Functions.php
function template_chooser($template)
{
global $wp_query;
$post_type = get_query_var('post_type');
if( $wp_query->is_search && $post_type == 'event' )
{
return locate_template('event-search.php'); // redirect to archive-search.php
}
return $template;
}
add_filter('template_include', 'template_chooser');
add_filter( 'posts_where', 'wpse18703_posts_where', 10, 2 );
function wpse18703_posts_where( $where, &$wp_query )
{
global $wpdb;
if ( $wpse18703_title = $wp_query->get( 'wpse18703_title' ) ) {
$where .= ' AND ' . $wpdb->posts . '.post_title LIKE \'' . $wpdb->esc_like( $wpse18703_title ) . '%\'';
}
return $where;
}
Event-search.php
<?php
/* Template Name: Custom Search */
get_header(); ?>
<?php
// args
$args = array(
'numberposts' => -1,
'wpse18703_title' => 'reading festival',
'post_type' => 'event'
);
// query
$the_query = new WP_Query( $args );
//echo "Last SQL-Query: {$the_query->request}";
?>
<?php if( $the_query->have_posts() ): ?>
<ul>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<li>
<a>">
<?php the_title(); ?>
</a>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php wp_reset_query(); // Restore global post data stomped by the_post(). ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
I look within loop.php but nothing there to help unfortunately. Basically – how do I add a filter to the search based on a URL parameter?
Hello,
Modules are different things altogether. In order to modify a module, you need to edit it’s file as there is no way to add a button in the module from the back-end. It will have to be hard-coded. Every module has it’s own specific file: http://screencast.com/t/bKA0L2PJ You will have to edit the files to add your button in it.
Here is an example:
You can use the do_shortcode function like so: http://screencast.com/t/2CXSDfGDZX
<?php echo do_shortcode('[vc_btn title="Click me" shape="round" color="violet" link="url:https://www.google.com||"]');?>
result: (module 1 is used in block 3): http://screencast.com/t/iqscQKkBM0f
You can see what module is used where in this list: http://screencast.com/t/xXHLgDoCRa
Thank you!
Here’s an example : http://boredomdoctors.com/step-tap-dancers/
I think it’s a technical problem with minifying or caching .. :/
thanks in advance!
Hello MrOrsh,
Unfortunately, our theme does not have such an option implemented to add some ads for your forum page. For achieving that, it is necessary to use do_shortcode method to add your custom ad in this kind of page. Please notice that you have to use this code <?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?> and you will place it in the bbpress.php core file, like this -> http://screencast.com/t/i6dr6auh2S2 and the result you should see here -> http://screencast.com/t/RTfHLss2RVpW In order to check your result, please ensure that you have inserted the ad code in the correct field, like this -> http://screencast.com/t/YEBdvQZldkY
(this is an example for custom ad 1).
Thank you for the message!
I would like to create my blog post like this example: http://demo.tagdiv.com/newsmag_fashion/td-post-nicole-millers-fun-rio-collection-is-perfect-for-zoe-saldana/
1) How do I create a full-width image that extends to (touching) the border of the post? I’m able to do so only for the featured image but not subsequent images in the body.
2) How do I create larger white space on the side (right & left) of my text? The white space in the above example looks different from this example: http://demo.tagdiv.com/newsmag/td-post-8-infinity-pools-you-have-to-see-to-believe/
Thanks.
Hi,
I disabled all the plugins (also updated Visual Composer to the last theme-included version) but no change.
I think the font size problem is due to the fact that i still have to use a css-hack to actually target the paragraph (p) settings under the individual pages, like:
.page-id-81 p {font-size: 12px !important;}
– if my forum page has 81 as the id-number.
This has been an issue since i brought the theme about a year ago (have had to do it on my contact-page for example). It only applies when using Visual Composer since the divs being created by it seems to be uneffected by the regular page paragraph setting.
As for the link on the H1/Title being incorrectly set to the bottom-most forum I have no idea what can cause. I disabled the whole H1-tag with:
.bbpress .td-page-title {display: none !important;}
Not an ideal solution, but at least it works.
Any more ideas on this?
PHP message: WordPress database error Table ‘termmeta’ doesn’t exist for query SELECT term_id, meta_key, meta_value FROM termmeta WHERE term_id IN (1457,1397,1333,1438,497,524,494,495,496,1310) ORDER BY meta_id ASC made by require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include(‘/themes/Newspaper/functions.php’), require_once(‘/themes/Newspaper/includes/wp_booster/td_wp_booster_functions.php’), require_once(‘/themes/Newspaper/includes/wp_booster/wp-admin/panel/panel_core/td_panel_generator.php’), td_panel_generator::init, get_terms, update_termmeta_cache, update_meta_cache” while reading response header from upstream, client: , server: , request: “POST /wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=6.7 HTTP/1.1”, upstream: “fastcgi://
Query is not able to find a table in the database. How to fix this problem?
Just to share some experiences improving site speed for the many who post here to discuss…
What I’ve also done (My site is an independent ‘hyperlocal’ news site – slightly bigger than hyperlocal really) which I think is good practice given FB Instant Articles and AMP (Already on Apple News for almost a year now) is almost ‘forget the desktop’ exists.
Due to 75%+ mobile visitors it seems good practice (if a ‘live’ news site with say 100+ articles per week) to get the site as fast and safe as possible – this may help others
– I’ve removed all home page blocks except ‘ticker’ – a lightweight grid with no slider- and a sidebar
– Removed all plugins or deactivated ones no required all the time
– Implemented Chris S .htaccess and functions.php tips exactly as described – inc image resizing
– Paid Cloudflare with page rules to remove wp-admin etc- following TagDiv recommendation settings except RocketLoader ON – Mirage in ON
– Removed my subscriber pop-up and won’t use one – promote subscriptions via another route – FB ads – Twitter ads perhaps
– Removed SumoMe and anything that fetches CSS externally
– I do run UberMenu on main site and ShiftNav on mobile (for a better user experience) – But run NO mega menu or dropdowns
– Currently RocketLoader (Cloudflare) runs and doesn’t break anything
– Only added Google Analytics via YoastSEO not on Theme Panel box – it’s there and working
– ADDED a user text box to point people to how to navigate the site – believe it or not saying ‘Press load more or click coloured category labels or main menu’ actually gets visitors to do that!
Results –
Before – GTMetrix – PageSpeed B YSlow C Page size (Homepage) 3.2MB Requests – 187 – Load time – about 7-10 secs
Pingdom 5-7 seconds
After – Page Speed A (96%) YSlow B (82%) Page size (Homepage) 1.2MB Requests 96 – Load time – 2 secs
Pingdom 700ms-1.3 secs
The theme still looks great on desktop but it’s not worth getting caught up in the aesthetics if the visitors aren’t looking at the pretty views – it looks brilliant on mobile and that’s what matters.
Good morning friends!!!!!
I’m with some small problems with my website on the phone
I would like to resolve these small details if possible.
1 – It is possible leave the color, the submenu items category, with the color different from color of the main menu, and with black color with different hover?
The color here is confused with the background with black color
How to change the color of the box?
http://www.screencast.com/t/tZAjY1GTJ
2 – exist very white space above the menu in model 1…
I removed the box of the ADSense. I want to leave the fixed menu at the top.
You can leave the Model menu 1, fixed bonded at the top 100%,
Same as example in model 2 – image A (www.globo.com?
http://www.screencast.com/t/L7jBynrDat
Thanks for attention
Aldemi
Hi,
My site is located at: https://www.crimethinkpost.com
My first issue is my posts repeat themselves in each category even though they are only designated as “News” and “Featured”. I’m sure this is a simple issue. Could someone help me see what I’m overlooking?
The second issue is with the social media widget appearing underneath a category on the right sidebar. How would I move the social media widget to the top?
Thank you, -Sean
How do you manage the number of posts that appear in each category. For example I have a News section that has hundreds of posts. And I only want 35 posts to show in this category, when you click on the category menu…after 35, I want the pagination feature to take over…and you can click next to see more. However, I have another category which only has 21 posts. So my question is…How can I manage the number of default posts that show up in each Category Archive section?
In addition is there a way you can re-order the sub menu’s that appear in the main menu bar. I love this mega-menu feature. But I would like to reorder the sections or subsections that appear on the side.
Thank you so much for your time guys!
HI,
1.
I forgot to mention – that im – NOT – using the VC Plugin!!!
2. Firebug says, there is a error:
ReferenceError: jQuery is not defined
var html_jquery_obj = jQuery('html');
3. Part of my sourcecode where you can see the scripts in the footer area just above the script with the error:
<script type='text/javascript' defer="defer" src='http://justatestsiteforyouname.com/wp-includes/js/admin-bar.min.js'></script>
<script type='text/javascript' defer="defer" src='https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js'></script>
<script type='text/javascript' defer="defer" src='https://cdn.jsdelivr.net/jquery.migrate/1.2.1/jquery-migrate.min.js'></script>
<script type='text/javascript' defer="defer" src='http:/justatestsiteforyouname.com/wp-content/themes/justatest/js/tagdiv_theme.js'></script>
<!-- JS generated by theme -->
<script>
(function(){
var html_jquery_obj = jQuery('html');
if (html_jquery_obj.length && (html_jquery_obj.is('.ie8') || html_jquery_obj.is('.ie9'))) {
var path = 'http://justatestsiteforyouname.com/wp-content/themes/justatest-child/style.css';
jQuery.get(path, function(data) {
var str_split_separator = '#td_css_split_separator';
var arr_splits = data.split(str_split_separator);
var arr_length = arr_splits.length;
if (arr_length > 1) {
var dir_path = 'http://justatestsiteforyouname.com/wp-content/themes/justatest';
var splited_css = '';
for (var i = 0; i < arr_length; i++) {
if (i > 0) {
arr_splits[i] = str_split_separator + ' ' + arr_splits[i];
}
//jQuery('head').append('<style>' + arr_splits[i] + '</style>');
var formated_str = arr_splits[i].replace(/\surl\(\'(?!data\:)/gi, function regex_function(str) {
return ' url(\'' + dir_path + '/' + str.replace(/url\(\'/gi, '').replace(/^\s+|\s+$/gm,'');
});
splited_css += "<style>" + formated_str + "</style>";
}
var td_theme_css = jQuery('link#td-theme-css');
if (td_theme_css.length) {
td_theme_css.after(splited_css);
}
}
});
}
})();
</script>
4. When i exclude the defer loading of the jquery.min.js file – the error gone!
5. I think this can help http://stackoverflow.com/a/33205519 – please also look at the other answers.
But i dont know how to fix it.
6. If you can help me out, it would be awesome!
Thank you so much
Heh. Sorry. Stupid me….
you know what I was doing to test (sure signs I need a long vacation from this stuff …. )
I was viewing the initial page, noting the view, going to amp version, then hitting back button, and going “how come it didn’t incrmenet” when obviously the back button goes back to browser cache version not new page visit.
LOL!
Using it via the actual post edit screen to see updated views, it does seem to be working.
So, guess I’m not as smart as I think I am! đ
Thanks again!
Chris S.
Hello,
How can I make the more article window show the latest article on each category?
For example: a user is reading a post in the category “news” when he scrolls down the more article window to show the latest post from “news” category
when a user in reading a post in category “widgets” when he scrolls down the more article box to show the latest post from “widgets” etc.
Its highly important for me to do this.
Thanks!
Hello,
You might be having a plugin conflict that interferes with the css for these pages. Please try to disable all plugins except visual composer and WC, clear cache and reset cdn files. If this does not resolve the problem, please provide an example and a link to these pages so we can inspect them.
Thanks.
Hi there! đ
Newspaper shows a strange behavior regarding its startpage. If I change something within the theme panel/header section, for example changing the main menu from style 1 to style 10, changes will be saved for all pages – except for the startpage, where the style still remains on “style 1”. This also happened for a logo change I did this morning (the new logo appeared on the startpage after like 2 hours without laying my hands on it again).
Am I doing something wrong? Is this a known behavior?
Thanks!
Hi
We certainly plan to extend the theme flexibility in the future updates. I’ve added your suggestion on our list and when the time comes our developers will consider it. This may take some time because we have a long implementation list and we take them one by one. We also must pick carefully what features will be implemented as the user always must get what is best from us.
Meanwhile you can use current_user_can() function in td_page_views.php to keep the views column only for users with some specific permissions: http://screencast.com/t/sHZMdOAnXy Note that if you decide to use this method the code commented in previous example must be de-commented now.
Thanks for your suggestion, have a nice day.
My system status is now ok, but home page is not working correclty.
Firstly, have a look on system status.

Then please have a look on homepage and then on post or some category.
Notice that for example footer is changed on category, post but not on homepage.
The title of post is changed when You browse category or directly go to post, but not on homepage.
When I try to have a look on category via homepage, it does not shows new post that i created and shoul be located in category Asia.
In summary, my homepage does not shows most of changes I make. What is wrong ?