Search Results for 'child theme'

Results from the Forum
gossiponthis
tagDiv Member

Are you using a child theme? If so, make sure you copy over the “header.php” file from the parent theme and replace the one in your child theme with it.

paperweight
Participant
#0

In the new version of Newspaper theme v9.6 all the td modules now contain this:

$modified_date = $this->get_shortcode_att('show_modified_date');
<?php echo $this->get_date($modified_date);?>

So this now displaying the modified date rather than the published date on all posts, correct?

I don’t mind that, but I only want to list posts by their published date. Will this new code you added affect how posts are listed?

I use a Child theme, so I need to be sure to modify your code so it works on my site. Thanks for your help!

bxp331
Participant
#0

After activating a child theme (wp-content/themes/Newspaper-child), the Theme Panel > Custom Code > Custom CSS screen hangs upon saving. When I go back to using the parent theme, the issue resolves itself.

Is there a fix for this?

I am including the code for my child theme’s functions.php and style.css files.

Thanks, as always!

HANGING SCREEN – CUSTOM CSS:
https://ibb.co/YBFZRt5

FUNCTIONS.PHP

<?php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
$parent_style = 'Newspaper-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')
);
}
?>

STYLE.CSS

/*
Theme Name: Newspaper Child
Theme URI: http://xyz.com/newspaper-child/
Description: Newspaper Child
Author: XYZ, Inc.
Author URI: http://xyz.com
Template: Newspaper
Version: 1.0.0
License: N/A
License URI: N/A
Tags: news
Text Domain: newspaper-child
*/

Calin
tagDiv Staff

Hi,

If you are using the mobile theme you’ll need to set the code for shortcode from child theme in mobile function too, because the child theme is not working for plugins, only for theme, here is the path -> wp-content/themes/Newspaper/mobile/functions.php
-> https://www.screencast.com/t/IgOtHRBlGaAS

Thank you!

Simion C.
tagDiv Staff

Hi,

I understand, but does it appear if you try what I suggested above as a quick test? My belief is that a plugin may be displaying that text. Or maybe a function or custom code entered in the theme files, theme panel or a child theme. Please check all of these.

That text is not coming from the theme, so it cannot be turned off by a theme setting. Let me know how this progresses.

Thanks

kumushka
tagDiv Member

Forgot to add that shortcode is done by a child theme.

Simion C.
tagDiv Staff

Hi,

Modifications made directly to the theme files will be lost, as the old files will be replaced with the new updated files. A child theme can be created and you can modify and add code in the theme files there
https://forum.tagdiv.com/the-child-theme-support-tutorial/

However note that having a child theme and adding code or modifying files in it is not update proof. Some files can be modified by us, meaning the serving the old files from a child theme can create problems. Like in this case
https://forum.tagdiv.com/topic/after-updating-to-version-9-5-the-site-does-not-work/

Let us know if you have more questions.
Thanks

Calin
tagDiv Staff

Hi,

Please replace the above code with this one
.category-poker-en-ligne .td-post-content .su-row:nth-child(2) amp-img {
display: none;
}

The code above is not longer working because there was some changes in theme files.

Thank you for your understanding!

Chris
Participant
#0

Hi Guys,

i get a white page after updating to your newest version, or the last version, i started the debug.log and this shows

Fatal error: Uncaught Error: Call to undefined method td_api_header_style::_helper_show_header() in /var/www/web6717/apps/veganevibes/wp-content/themes/Newspaper-child/header.php:69 Stack trace: #0 /var/www/web6717/apps/veganevibes/wp-includes/template.php(704): require_once() #1 /var/www/web6717/apps/veganevibes/wp-includes/template.php(653): load_template(‘/var/www/web671…’, true) #2 /var/www/web6717/apps/veganevibes/wp-includes/general-template.php(41): locate_template(Array, true) #3 /var/www/web6717/apps/veganevibes/wp-content/themes/Newspaper/page.php(7): get_header() #4 /var/www/web6717/apps/veganevibes/wp-includes/template-loader.php(77): include(‘/var/www/web671…’) #5 /var/www/web6717/apps/veganevibes/wp-blog-header.php(19): require_once(‘/var/www/web671…’) #6 /var/www/web6717/apps/veganevibes/index.php(17): require(‘/var/www/web671…’) #7 {main} thrown in /var/www/web6717/apps/veganevibes/wp-content/themes/Newspaper-child/header.php on line 69

Not sure how i can fix this, page is https://www.veganevibes.de

FedericoVisioli
Participant
#0

Hi, if I install the new version of Newspaper updated, will i lose the changes that i did on the WordPress’ “Editor”? For examples, codes i wrote on the header.php or the facebook pixel.
Is there any way i can make a child theme so all the edits i do on the code remain when I’ll update the theme?
I bought “Newspaper 9” 5 months ago, I’m happy with it but I don’t want to lose all the code edits on the WordPress editor.
Is there a solution to this? Like “create a child theme” for Newspaper 9?

lazdim
Participant
#0

Hi,
I add a “Text with Header” element via tdComposer.
I have created a shortcode [foobar] in functions.php of the child theme.
I add [foobar] in the text field and the content of the shortcode shows just fine.
I save the page using tdComposer.
When I try to edit the page agin with tdComposer I get the following error:
Errors at columns: 2(models) : 8(dom). The model does not match the content
Help, please?

Calin
tagDiv Staff

Hi,

If you want only the animation here is the custom css for it
.td-grid-style-1.td-hover-1 .td-big-grid-post:hover .td-module-thumb a:last-child:after {
-webkit-transition: transform 0.7s ease 0s;
-moz-transition: transform 0.7s ease 0s;
-o-transition: transform 0.7s ease 0s;
transition: transform 0.7s ease 0s;
transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 146%, 0);
-webkit-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 146%, 0);
-moz-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 146%, 0);
-ms-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 146%, 0);
-o-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 146%, 0);
}
.td-grid-style-1.td-hover-1 .td-module-thumb a:last-child:after {
position: absolute;
top: 0;
left: 0;
width: 160%;
height: 100%;
background: rgba(255, 255, 255, 0.2);
content: '';
z-index: 1;
transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -120%, 0);
-webkit-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -120%, 0);
-moz-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -120%, 0);
-ms-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -120%, 0);
-o-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -120%, 0);
}

Just change the gig grid style from here -> https://www.screencast.com/t/VTBb2xCdEjmf with the number of style that you have set https://www.screencast.com/t/3fO8phLI3mcW
-> https://www.screencast.com/t/cQrA4zrbj33C

Set the code in Newspaper>Theme panel>Custom code> Custom css

Thank you!

Simion C.
tagDiv Staff

They are not the same, one is a predefined post template, non-editable with the composer, and has a predefined structure in a PHP file. These can be modified in a child theme if needed. A new template can only be added like so
https://forum.tagdiv.com/api-single-template-introduction/

But all that would not be necessary since the introduction of the cloud library plugin. The cloud templates can be edited with the composer, modified, duplicated.
We replicated the design of the predefined post templates in cloud templates, also added some new designs.

What would you like to apply exactly from a predefined post template to a cloud template? A predefined post template will always look the same in structure and design. The post content will be the same in both. Let me know if I misunderstand.

DeChriss
Participant
#0

Hello Guys,

We are using some custom Cloud Library templates and for our posts and coming modifications cause me a headache at the moment, because I simply get lost by all possibilities and how you can change things in the Newspaper theme. 🙂

So, let’s assume we starting with a fresh child-theme and I want to add some custom PHP Code to show up an Amazon buying box on a specific position in all posts, which is the best place to start? As we are using Cloud Library templates there are no “physical” files which I can modify and hooking up by functions.php maybe even not work as desired, that options do we have? Maybe I missed something. Could we do something with the Blocks?

I need a big nudge into the right direction. 🙂

Thanks in advance,
Chris

Simion C.
tagDiv Staff

I understand now, you could do that by adding a code such as this one in the theme or child theme functions file

remove_filter( 'user_contactmethods', 'td_extra_contact_info_for_author', 10 );

It should remove the socials.

Simion C.
tagDiv Staff

They will still work, depending on what modifications you want to do there. If you plan to modify the single file, you can do so in a child theme. This way you won’t lose them.

Bogdan B.
tagDiv Staff

hello,

This is most likely a plugin conflict. Maybe a certain plugin that you use became incompatible with the current version of theme or you could be using a child theme that you have not updated. Child themes are not update proof.
Please check plugins and child theme implementation.

Thank you!

Calin
tagDiv Staff

Hi,

If you did not make and changes in theme files, then the best way will be to remove the theme and install it again ( if you make some changes then is possible to get this error from there ), if you are using child theme please deactivate it until after you make the update/installation
How to update the theme ->https://forum.tagdiv.com/how-to-update-the-theme-2/
Install via WordPress – https://forum.tagdiv.com/install-via-wordpress/
Install via FTP – https://forum.tagdiv.com/install-via-ftp/
We recommend to be made via FTP.

Thank you!

Calin
tagDiv Staff

Hi,

1. All the code that you set in theme panel will be keep after you make the update, only the changes that you make in theme files will be override, the settings from theme panel will remain.
For what is use Child theme -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

2. I do not quite understand what you want to move from sub-domain on domain, only the cloud templates or all the website.

Some users recommend the duplicator plugin for migrating/moving websites, here are some guides I found about it
– http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/
– https://www.shoutmeloud.com/migrate-wordpress-server.html
– https://pantheon.io/resources/quickstart-guide-migrating-wordpress-site
Or if you want to move only the cloud templates you’ll need to copy the content from the template that you have in cloud library and past it in domain in a blank template ->
https://www.screencast.com/t/6qbuGYmZicg5
https://www.screencast.com/t/MrHhBU8v
https://www.screencast.com/t/zavyyupm0ebW
https://www.screencast.com/t/l0BI1OFh9s4
https://www.screencast.com/t/Za0Wt7Dk

Hope this will help you!
Thank you!

Hugo Chan
Participant
#0

Hello
I need help for the blow two questions:
1) We have custom code inside the Theme Panel Settings. Do we have to create a child theme to keep it after future theme updates? Or is it ok to stay in the Theme Panel?
2) How can we move designs from the sub-domain to the actual domain? Is it ok to do it with the cloud library?

Regards
Hugo

Hugo Chan
Participant
#0

Hello
I need help for the blow two questions:
1) We have custom code inside the Theme Panel Settings. Do we have to create a child theme to keep it after future theme updates? Or is it ok to stay in the Theme Panel?
2) How can we move designs from the sub-domain to the actual domain? Is it ok to do it with the cloud library?

Regards
Hugo

Simion C.
tagDiv Staff

Hi,

If you use a cloud header template that is possible with a setting
http://prntscr.com/msx74s

If you don’t use a cloud header template, you could either comment the code as mentioned in this topic by Bogdan – https://forum.tagdiv.com/topic/order-of-navigation-items/

Or use a CSS code to hide it – http://prntscr.com/msx9si this code will apply to all the mega-menus with sub-categories (it can be made more precise if needed)

.block-mega-child-cats a:first-child{
display: none;
}

The code can be entered in the Theme panel custom CSS section.

Thanks

Calin
tagDiv Staff

Hi,

The old header should torn of autocratically when you set a cloud header
-> https://tagdiv.com/whats-new-in-newspaper-theme-9-5-update/
Please make sure that you make the update like in our quid and you do not have any child with header in it.
-> https://forum.tagdiv.com/how-to-update-the-theme-2/

If the problem is still there please provide some more details and some screenshots.

Thank you fro your understanding!

Calin
tagDiv Staff

Hello,

This is a code that breaks the html. It can come from a plugin or custom code modification. Please disable all plugins except the page builder, 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!

Calin
tagDiv Staff

Hi,

Usually those problem appear when is a conflict between our theme and some plugins, or when are made some changes in theme files; what you can do is to deactivate all plugins, clear all cache and try again, if the problem is still there, check if you have the child theme, deactivate it if you have, also check the code from theme panel, if the problem is sill there, then I think the best way will be to make a full backup and remove/delete the theme and install it again.
Also please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/

Thank you for your understanding!

Viewing 25 results - 7,326 through 7,350 (of 12,866 total)