- NewsmagChild theme support
- NewsmagWhat’s included in Newsmag theme package
- NewsmagCustom Post Type Support
- NewsmagInstall via WordPress
- NewsmagInstall via FTP
- NewsmagBreadcrumbs
I think you misunderstood my post.
I am NOT USING the plug-in.
I have stopped using the “Google Tag Manager for WordPress Plugin.”
Instead of using a plug-in, I want to install the Google Tag Manager manually. It operates similar to Google Analytics.
https://developers.google.com/tag-manager/quickstart
It is SECOND most installed feature of Google’s Analytic Tool Suite. Being so popular and widely used, I was hoping there would already be a set and proven method to install with your theme.
For many, not using Google Tag Manager is not an option. It must be installed.
I was asking for the best method of modifying the CHILD THEME to added the needed Google Tag Manager Code Snippets.
It has these two requirements:
1. Paste some GTM code as high in the <head> of the page as possible.
2. Additionally, paste addtional GTM code immediately after the opening <body> tag
With that said, you are saying I should copy header.php to the child theme, and modify it there? Is that correct? Is that the best method? Is there another approach?
Hello,
This could be a plugin conflict so please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Hi,
@nkodgh You must edit the mentioned theme file directly. The only files that are currently supported through a child theme are mentioned here – https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks
Hi,
This is an unusual problem. A theme re-install should fix this problem you are having. Try downloading the theme package again and use it to install the theme by FTP. Deactivate any child theme you might have, to rule this out. The mentioned option should display in the theme panel. If you have already tried this with no result, please send us an email at contact@tagdiv.com and provide admin login information so we can inspect the issue. Also paste a link to this topic.
Thanks
Hello,
You seem to have problems with your site as you have mentioned the blank white page in another topic. This could be a plugin conflict so please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Hi,
If you have the mobile theme plugin activated then there will be no changes visible when you modify the respective files. The mobile theme uses it’s own files regarding the logo. Unfortunately the mobile theme does not have support for the child theme. Any modifications will have to be made directly to the file
– https://www.screencast.com/t/VBLey0yff1L6
If you want to modify the file you mention, please deactivate the mobile theme and the changes made to it through the child theme, will be visible.
Thanks
Hello TomasCabezuelo,
The recommended way in this regard is to re-install all used plugins after you have updated your theme. The code which you have in your child theme will not be overwritten by your updating. Also, you should check the child theme version to be the latest one which comes bundled with the theme core file.
Hope this helps!
Thanks for the message!
Hi,
You can use the child theme sample provided in the latest theme package for your website, and it will work properly.
Thanks
Hi Catalin,
Thanks for the advice. We’ve made a lot of progress.
1. We’ve updated the theme and are now using version 7.8.1
2. We’ve deactivated WP Supercache while we’re working on the site
3. We created a child theme. Here’s how it looks:
Newspaper-child
….parts
……..header
…………logo-mobile.php
….functions.php
….screenshot.png
….style.css
Contents of style.css:
/*
Theme Name: Newspaper 7 Child theme
Theme URI: http://themeforest.net/user/tagDiv/portfolio
Description: Child theme made by tagDiv
Author: tagDiv
Author URI: http://themeforest.net/user/tagDiv/portfolio
Template: Newspaper
Version: 7.7c
Text Domain: Newspaper-child
*/
/* —————————————————————————-
This file will load automatically when the child theme is active. You can use it
for custom CSS.
*/
Contents of functions.php:
<?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’ );
}
When I make changes to parts -> header -> mobile-logo.php those changes are not reflected on the site when I view them from a mobile device.
As an experiment I removed a semicolon from the end of a line in mobile-logo.php to generate a syntax error. Nothing happened on the site.
Digging deeper I went to the parent theme and deleted a semi-colon from the same file to see if it was being picked up there. No dice! After that I went crazy and created several syntax errors in different files to see if I could crash the site. None of my changes had any effect. After that I put everything back.
Is there caching going on somewhere else besides my plugin? What else could be going on to explain that none of my changes at the filesystem level are taking effect?
Hi Catalin,
Thanks for the advice. We’ve made a lot of progress.
1. We’ve updated the theme and are now using version 7.8.1
2. We’ve deactivated WP Supercache while we’re working on the site
3. We created a child theme. Here’s how it looks:
Newspaper-child
….parts
……..header
…………logo-mobile.php
….functions.php
….screenshot.png
….style.css
Contents of style.css:
/*
Theme Name: Newspaper 7 Child theme
Theme URI: http://themeforest.net/user/tagDiv/portfolio
Description: Child theme made by tagDiv
Author: tagDiv
Author URI: http://themeforest.net/user/tagDiv/portfolio
Template: Newspaper
Version: 7.7c
Text Domain: Newspaper-child
*/
/* —————————————————————————-
This file will load automatically when the child theme is active. You can use it
for custom CSS.
*/
Contents of functions.php:
<?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’ );
}
When I make changes to parts -> header -> mobile-logo.php those changes are not reflected on the site when I view them from a mobile device.
As an experiment I removed a semicolon from the end of a line in mobile-logo.php to generate a syntax error. Nothing happened on the site.
Digging deeper I went to the parent theme and deleted a semi-colon from the same file to see if it was being picked up there. No dice! After that I went crazy and created several syntax errors in different files to see if I could crash the site. None of my changes had any effect. After that I put everything back.
Is there caching going on somewhere else besides my plugin? What else could be going on to explain that none of my changes at the filesystem level are taking effect?
Hello, I am using the latest article module and block 9 module on the front page. My question is how to adjust the h3 or h4 title size of this module. I tried to declare the tag in this module in the style sheet of my child theme but it failed. Like this example -> .td-block-title-wrap h4{font-size:20px}
how can i do?
Let me know how to fix it in a stylesheet or template rather than setting it in the panel. Of course, the latest articles and the block 9 module
Hi,
There seem to be some errors present on your website – https://www.screencast.com/t/mdBYYNa09B
To try and identify what is causing this issue first deactivate all your plugins except the ones provided with the theme, clear any caching installed and check to see if the problem remains. Also try to switch from the child theme to the main theme to rule this out as well. Usually problematic plugins or modifications made to the theme files are to blame in such cases.
Thanks
Sorry the question was:
What “functions.php” child theme release to use? V6.3+?
Sorry, what child theme release to use?
The last V6.3+? OR the previous… please see:
https://dl.dropboxusercontent.com/u/6497728/child.png
Ah okey.
I downloaded the template again. What should I do to update it on my website? Actually im workin on childtheme
Hi,
The child theme is provided in the theme package and can be used according to this tutorial, that specifies what files can be overwritten – https://forum.tagdiv.com/the-child-theme-support-tutorial/
The code from the child theme functions file queues the theme style then the style from the child theme
– https://www.screencast.com/t/B3ARcYwn
More information about child themes here – https://codex.wordpress.org/Child_Themes
Thanks
Hey
I create child theme. In my style.css is:
/*
Theme Name: BriegChildTheme
Template: Newspaper
Description: Child theme made
Version: 1.0.2
Tags:black, white, one-column, two-columns, fixed-layout
*/
In my function.php there is no any rewerite rules for styles
The resaults in code is:
<link rel='stylesheet' id='td-theme-css' href='http://localhost/american-inno-site/wp-content/themes/BriegChildTheme/style.css?ver=7.7.1' type='text/css' media='all' />
What is wrong?
It tahes child theme and version from parrent.
Hello,
Please try to disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Hello,
This could be a plugin conflict so please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Would you please consider adding at least one more input box in the custom code section? There should be a box for entering code in between the <head> tags on every page. Anyone who works in publishing will need this. You realy can’t advertize effectively on either facebook, google or twitter without using the tracking options/pixels, so it’s a bit strange that <head> code editing is not present in a newspaper theme. It is realy cumbersome to have to use ftp and edit the header.php every time. Also, it get erased on every update (yes I’m aware of the child theme possebility, but that actually didn’t work well).
Thanks.
Hello,
I could not see the issue as I have been testing with my android phone and the issue only seems to be affecting iphones. However, the same issue does not happen on our demo so it is not a theme bug. This could be a plugin conflict so please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
we have it working without changes to the core theme files, we have added:
<?php echo get_avatar(get_the_author_meta('ID', $this->post->post_author)); ?>
to td_module_2.php in our child theme.
A child theme query can be created for this module
Hello,
This could be a plugin conflict so please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!