- NewspaperChild Theme Support
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to Update the Newspaper Theme
- NewspaperWhat’s Included in the Newspaper Theme Package
- NewspaperFlex Block Settings Guide
- NewspaperPrimary Category: Build a hierarchy for your website
- NewspaperBreadcrumbs
- NewspaperHow to Install Newspaper via FTP
- NewspaperHow to Install Newspaper via WordPress
I’m trying to load editor styles as I’m using a Child theme. I did see some less files but I’m sure they would keep updating with the theme updates. What’s the best way to load editor styles?
Тема обновлялась с версии 6.6.2 до 6.6.3. После того, как стили отказались работать, полностью удалил тему и плагины и поставил заново. В общем, проблема заключается в том, что сама дочерняя тема подключается: изменяются блоки и модули, но код из файла style.css не работает. Пришлось временно отключить работающий сайт, т.к. вся разметка поехала.
———————
Subject updated to version 6.6.2 to 6.6.3. After styles refused to work completely removed theme and plugins, and set again. In general, the problem is that the very child theme connected: changing blocks and modules, but the code from the style.css file is not working. I had to temporarily disable the working site, because all markings have gone.
Hey,
is td-config.php child-theme ready? Otherwise there would be no oppurtunity to change the thumb without doing after every theme update a manual editing.
Thanks!
You don’t need to use child theme unless you plan to make changes to the theme core code; and still best to do that to the main theme and keep track of changes to apply to future updates.
Note – see the changelog included in the all files download as you may need to update the child theme files as well as main theme files when there is major update.
Hi
I try to update to 2.34 but when i activate the child theme a ton of errors message
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_1 is not set.
/*******/******/******/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
..
to td_block_16
and slide …
I tried with FTP, from dashboard, WP and others plugin are uptodate.
I’m lost
Thanks to help me
I just updated my Newspaper 6 theme to the latest version with the latest version of wordpress and I am using the sample child theme that I downloaded from themeforest. I am getting css warnings of unexpected css tokens and invalid property declarations, and the image zoom feature on the big grid blocks doesn’t work in Safari. The image zoom works in Chrome and Firefox, but when I hover over the big grid images in Safari, they don’t zoom at all.
Looking at some of the warnings, there seems to be errors in the CSS syntax in the core theme code. I don’t get any warnings in Chrome or Safari.
You can check out the site here: http://www.nationofchange.org/news
После последнего обновления не работают пользовательские стили 🙁 Совсем не работают… Из файла дочерней темы и из панели темы. Не работают 🙁 Потерял очень много времени, чтобы найти ошибку, но так и не нашёл. Работа встала.
———————
After the last update custom styles do not work 🙁 It’s not working … From file “style.css” of child theme and the theme panel. Do not work 🙁 Lost a lot of time to find the error, but did not find it. Job stood.
Hello,
Please make sure that you updated the theme according with our documentation: https://forum.tagdiv.com/how-to-update-the-theme-2/ deactivate all plugins and also you update the plugins included in theme path Newspaper-tf\plugins clear all caches and test again.
If you use child theme for files customizations it’s a good practice to check update_log.txt file for each update and see what files had been modified so if those specific files are used in the child theme you will have to check your customizations to not break the functionality of the theme.
Thanks!
Thanks Marius! 🙂
Can I reply my domain privately?
I’m still having issues finding the correct classes/id’s for the menu items.
Basically what I want to do is have one of the menu items become for example green when hovering on it and the rest should be red when hovering.
I found this “menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children td-menu-item td-normal-menu menu-item-134” as a class but it did not work with
.menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children td-menu-item td-normal-menu menu-item-134 a:hover{
color: #00ff00;
background-color: #00ff00;
}
in the custom CSS theme settings.
I also tried only using .menu-item-134 with the same css code after that.
Thanks for the answer and Happy Holidays!
BONUS QUESTION: What is the default font that you are using?
BONUS QUESTION 2: What happend with the theme speed? I was under the impression that it was supposed to be very fast, it only gets 31/100 from google pagespeed now…all my plugins are disabled.
Hi
I’ve tested the latest version of the theme and also the child theme witout any customizations and works fine. Try to deactivate the child theme, deactivate all others plugins except Visual Composer, clear all caches and test again. Also check if the changes made in child theme files are compatible with the main theme functionality.
Let us know how it goes please send us an email at contact@tagdiv.com and provide your login information and and ftp access so we can take a closer look at the problem, also include a link to this topic. Before that make sure you back up the database and your site: https://codex.wordpress.org/WordPress_Backups
Thanks!
Update:
After doing some digging, I had to update the Child Theme Functions code which I copied and pasted from the new install folder.
Now this is what I am seeing when I go to blog posts:
http://s23.postimg.org/tdc23s3zf/123456.png
As you can see, everything from the post title down is non existent.
I tried all that…still failing. Here is a screen shot of the errors that are displayed not only on the homepage but most areas in WP-Admin
http://s7.postimg.org/cu1mhqhqj/123.jpg
Note: These errors occur after I install the latest version of News Mag and then activate my Child Theme.
Hello,
I use your theme with a child theme. I added this code to style.css:
.td-post-content p {
line-height: 35px;
}
.td-post-content h2, .td-post-content h2, .td-post-content h3, .td-post-content h4, .td-post-content h5 {
letter-spacing: 0px;
}
But it didn’t affect my site here: http://surfsecured.net/hostgator-web-hosting-review/
Please help me to make child theme working.
Thanks!
—
Alex
Hi there,
I’ve noticed that the CSS and Javascript are loaded on every site page as well as other all other plugin’s CSS and JS. It’s resource wasting because it requires several TCP connections at every page load and degrading this way the site load performances and the user experience too. Therefore I’m trying to deregister CSS and Javascript where not needed and to load them only on pages where they are needed. For example, since the Contact Form 7 is used only on the ‘contacts’ page, I’ve added the following lines to Newsmag-child theme functions.php:
add_filter( 'wpcf7_load_js', '__return_false' );
add_filter( 'wpcf7_load_css', '__return_false' );
?>
Now, I should add the following lines in the page where the Contact Form 7 is used i.e. “contacts” page:
<?php
if ( function_exists( 'wpcf7_enqueue_scripts' ) ) {
wpcf7_enqueue_scripts();
}
if ( function_exists( 'wpcf7_enqueue_styles' ) ) {
wpcf7_enqueue_styles();
}
?>
But I don’t have a “contacts.php” page! So that where I have to add this code?
More in general, could you advice a method by means of which I can always include CSS and JS (mainly due to plugins) only where needed?
Thanks in advance for any appreciated help.
Giuseppe
Very simple.
Did you directly modify the theme files without the use of a child theme?. In my case I manually modified the theme’s style.css, so when I update the theme, I simply go back and minify the css file over again.
So the simplest means to update the theme and not lose your designs and settings or modifications is to simply change the theme to maybe a default one, then delete the Newspaper theme and install the theme directly in the Appearance>theme>add theme . Don’t sweat it, your settings are not lost.
Or you simply update it via FTP. Tagdiv have a nice tutorial to help you out. https://forum.tagdiv.com/how-to-update-the-theme-2/
Have a wonderful day.
How?
Where i edit and add this code in child theme.
please provide steps.
Thanks
Hello Lewis,
Unfortunately, we do not have reports about this issue. Please try to disable all your custom modification, clear all caches, all the active plugins except Visual Composer and install only the plugins that come bundled with our theme and try again. After these changes, if your problem is still there (without child theme), please send us an email to contact@tagdiv.com with your log-in information so we can further inspect the issue. Please copy the link of this topic so we can know who you are and what is your issue.
Hope this helps and let us know how it goes!
Thank you for the message!
Hi
I’ve tested you’re code in child theme and works fine on my side: http://screencast.com/t/tdFHg1x6cI I am not sure why this code doesn’t work on your side but you can try to remove any other customizations from child theme, or also try to deactivate the child theme and insert the code in functions.php in parent theme.
Thanks!
I am trying to add a few custom image sizes inside the functions.php of the child theme. I add the code below and then run Regenerate Thumbnails on an image, but it doesn’t create any of my custom image sizes. I know the plugin is working because if I delete one of the existing thumbs, it recreates it.
Am I doing something wrong?
function custom_image_sizes() {
add_image_size("custom-thumb", 218, 125, true);
add_image_size("custom-large-thumb", 290, 166, true);
add_image_size("custom-medium", 532, 304, true);
add_image_size("custom-slider", 700, 400, true);
}
add_action('after_setup_theme', 'custom_image_sizes', 11);
Hi
I’ve test this code on my side an works fine: http://screencast.com/t/DspIZkQ2Yat4 Please check the code from line 26 in Newsmag-child/functions.php because seams to be a conflict there. Also try to deactivate the child theme and add the code in functions.php file from main theme, then check again.
Thanks!
@mboydnv
I do agree on being a bit against the “bloated one plugin for all” concept. I used to hate YOAST. We used to build our own themes, or hack things like Canvas to add custom if/then and queries for meta data in our headers. Yoast simply made it easier for us to deploy and add some things more quickly. But it has gotten a bit big and bloated and every major version it crashes and burns. I certainly don’t think it’s the only game in town, but it does work for a lot of folks. Of course, we’re using some other things on some sites, just because they’re smaller and work as well.
As for canonical tags — the reason they are useful for many sites, is for things like the pending /amp/ protocol from Google rolling out in 2016 to speed up mobile pages separate from things like mod_pagespeed or http/2 (previously inclusive of mod_SPDY). So, for example mobile accelerated pages will soon be loaded as so:
yoursite.ooo/name-of-my-article/amp/ — in this context, the canonical tag is useful to identify the /amp/ version is not another page, but an alternate “version” of the same page.
In our case — I should have stated — we syndicate our news from some sites, and the canonical tag helps identify we did it first, and when we link back to the parent page from the child syndicator.
Also be aware that article on MOZ is from 2013, and going into 2016, the canonical tag is more mature now.
However, you are correct — if you have no duplicate versions of content, if you’re not dealing with malformed inbound links to your site like /site/name-of-article/?12hy6 — where Google is saying you have duplicate content for too many 404 errors — then you may not need it !!
In our case, it helps control inbound malformed links from external sites, and also because with modern social media you have a dozen sites inventing their own links to your website page; meaning FB, Twitter, LinkedIn, etc. all use a shortcode in some case to link to you, and the canonical can help identify that the URL on your site is the de-facto CORRECT one, even though it should be self evident being on your site.
I’m not arguing you need to have them, just saying they are useful and do NOT hurt inbound traffic in any way. Just like adding a default img tag, or an author tag, or other meta data; it’s read by those systems that have use for it, and other things ignore it.
Anyway — just some food for thought 🙂
Hi there,
I had to modify the style.css file of my Newsmag-child theme in order to get padding at the top of my site page to fit the background skin image because, otherwise, the left and right top header menus (please see http://352.be7.myftpupload.com/) would be overlayed by the skin background image.
So that I’ve applied the following modifications to style.css:
.td-header-container {
width: 1021px;
margin-right: auto;
margin-left: auto;
position: relative;
/* responsive portrait tablet */
/* responsive portrait phone */
margin-top: 95px; /* Row added for padding needed for background skin image */
}
@media (min-width: 768px) and (max-width: 1023px) {
.td-header-container {
width: 756px;
margin-top: 55px; /* Row added for padding needed for background skin image */
}
}
@media (max-width: 767px) {
.td-header-container {
width: 100%;
margin-top: 0px; /* Row added for padding needed for background skin image */
}
}
Is there a way to apply this upper padding only when a background skin image has been set and to remove padding when no background skin image has been set without changing the style.css file everytime by hand? Otherwise a ugly blank padding is displayed when no background image is set (please see 43b.60a.myftpupload.com/)
Thanks a lot for any help or advice,
Giuseppe
Hi
I’ve tested this on my side with the latest theme’s version, V6.6.2 and the logo it’s displayed fine on header style 8: http://screencast.com/t/AGf3QxItx1J Please make sure that you updated the theme according with our documentation: https://forum.tagdiv.com/how-to-update-the-theme-2/ clear all caches, deactivate the child theme and test again.
Let u know how it goes.
Thanks!
Hi,
I use Contact Form 7 plugin in order to get the contact form (please see 43b.60a.myftpupload.com/contatti/). To avoid to get extra CSS and/or JavaScript file on every page of my site, I’ve followed this guide http://code.tutsplus.com/articles/optimizing-contact-form-7-for-better-performance–wp-31255. This way I should get the CSS and Javascript of Contact Form 7 plugin loaded only into the page where the form is really placed.
So that I’ve created a new functions.php file of my Newsmag-child theme which contains only the following code:
<?php
/*
GSM:file functions.php of the Newsmag-child theme
*/
if (!function_exists('aa_deregister_styles')) {
// Deregister Contact Form 7 styles
add_action( 'wp_print_styles', 'aa_deregister_styles', 100 );
function aa_deregister_styles() {
if ( ! is_page( 'contatti' ) ) {
wp_deregister_style( 'contact-form-7' );
}
}
}
if (!function_exists('aa_deregister_javascript')) {
// Deregister Contact Form 7 JavaScript files on all pages without a form
add_action( 'wp_print_scripts', 'aa_deregister_javascript', 100 );
function aa_deregister_javascript() {
if ( ! is_page( 'contatti' ) ) {
wp_deregister_script( 'contact-form-7' );
}
}
}
?>
But, after this I got the following error:
Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas10_data03/26/2630926/html/wp-content/themes/Newsmag-child/functions.php:26) in /home/content/p3pnexwpnas10_data03/26/2630926/html/wp-includes/pluggable.php on line 1207
What I’m doing wrong?
Thanks
Giuseppe
I have updated, than go back to previos version. I must, site is live, and older theme works.
Only new theme. no child, no plugins, not working.