Search Results for 'child theme'

Results from the Forum
Catalin
tagDiv Staff

Hello eworld007,

Maybe your images are stuck in opacity 0. This usually happens on a js error caused by plugins or customization or other external optimization tools. Please disable all plugins except visual composer or TD 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 functioning of the theme.

Hope this helps and let us know how it goes!

Thanks for the message!

Bogdan B.
tagDiv Staff

Unfortunately not all files can be changed from the child theme. Some files can only be edited from the main theme. The files that work in the child theme are mentioned here: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you!

Catalin
tagDiv Staff

Hello Alex,

This happens when you update the theme or change themes temporarily. This is a common issue with all WP themes/installs. Not theme specific. Also, I will recommend you to check with your hosting provider as to where the error log is. 500 error means site crashed on ping/visit — could be overload — did you assign enough memory to your install? Please also check your system status parameters to be increased according to our documentation from here -> https://forum.tagdiv.com/requirements-for-newspaper/

If you use a child theme, that means you have custom code implementation (otherwise the child theme is pointless). Please restore the theme to its default state and test without any customization. That means, activating the main theme and removing all custom code. If your child theme has not been updated properly, all sorts of issues can occur. Please update your theme to the latest version and test without a child theme. if the problem goes away then you need to re-create your child thebe by using the one that comes bundled in our theme package.

Thanks for your understanding!

karlrosqvist
tagDiv Member

I spoke too soon, sorry about that. It works great when I change the settings on the Newspaper theme in Filezilla. However, my child theme doesnt pick it up at all. Any idea why?

https://www.screencast.com/t/tXKYY3Yw11
https://www.screencast.com/t/flZpBsHX4

I have to do this in the child theme right? Or else the changes will be set to default values when the next update rolls out. Thanks / Karl

Bogdan B.
tagDiv Staff

Until we inspect the site and run a debug, it is hard for me to provide any solution as I have nothing to start with. I need to investigate the issue in order to provide a solution. I cannot do that except from the back-end. you cna create a temporary user and delete it after we are done with the investigation.

if you want to go at it yourself, please follow these steps:

1. disable all plugins
2. clear cache
3. disable the child theme i you use one.
4. make sure the theme is installed proeprly
5. Check the system status screen for errors.
6. Check the htaccess file on your host for particular rules that can affect the site.
Thanks.

Simion C.
tagDiv Staff

I am having problems replicating this on my end, I use the latest theme version and latest Woocommerce (same as you), only theme plugins and Woocommerce active. I tried with a few iPhones and the Safari browser, the images load perfectly and the menu works as it should.

In your case the images seem to be invisible and the menu is not working. Maybe another plugin is causing it somehow, or custom code. You could begin investigating this, plugins, custom code of any kind, the child theme.

The mobile theme probably is not loading the cause of the problem, that is why it works.

Sijpkens
tagDiv Member

Hi Catalin,
Thanks for the explanation.
I put the code on the right place in td_module.php. I can place the oter code in td_module_4.php (and td_module_1.php), but when I try to place it in td_module_10.php or td_module_11.php i get this error:
Your PHP code changes were rolled back due to an error on line 27 of file wp-content/themes/Newspaper-child/includes/modules/td_module_11.php. Please fix and try saving again.

Call to undefined method td_module_11::get_source_and_via()

How can I put your suggested code in td_module_11.php?

Bogdan B.
tagDiv Staff

Hello,

You cna try adding this custom css to your theme panel under custom code:

@media (max-width: 767px){
.td-wpml .menu-top-container {
width: 100%!important;
}
.top-header-menu{
display:flex!important;
}
.td-wpml .menu-top-container .wpml-ls-item.menu-item-has-children .sub-menu{
right: auto!important;
left: 0!important;
}
}

Thank you!

Simion C.
tagDiv Staff

Hi,

It would be best to create a child theme in that case, a child theme is provided in the theme package (code folder)
https://forum.tagdiv.com/whats-included/
This is a guide – https://forum.tagdiv.com/the-child-theme-support-tutorial/
The child theme comes with a functions file, enter the codes there.

Thanks

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except the page builder and woocommerce, 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!

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so 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!

afazja
tagDiv Member

There is a CSS trick to HIDE this stupid problem, I hope someone will find it useful. Just paste the code in the theme or child theme CSS file.


form.woocommerce-cart-form ~ form.woocommerce-cart-form {
display: none !important;
}

div.woocommerce-message ~ div.woocommerce-message {
display: none !important;
}

div.cart_totals ~ div.cart_totals {
display: none !important;
}

afazja
tagDiv Member

There is a CSS trick to HIDE this stupid problem, I hope someone will find it useful. Just paste the code in the theme or child theme CSS file.


form.woocommerce-cart-form ~ form.woocommerce-cart-form {
	display: none !important;
}

div.woocommerce-message ~ div.woocommerce-message {
	display: none !important;
}

div.cart_totals ~ div.cart_totals {
	display: none !important;
}
  • This reply was modified 8 years by afazja.
Viju
tagDiv Member

Hi,
I buy theme today and this is my first comment.
Yet i have not installed theme, but i want to ask you in advance that if i want to add many codes in functions.php then which file i edit? (Theme or Child theme?)
Thanks

Sijpkens
Participant
#0

Hi,
After updating to Newspaper 9, the custom code in a child theme doesn’t work anymore.

I added this to /inculdes/wp_booster/td_module.php:


function get_source_and_via() {
$postsettings = get_post_meta($this->post->ID, 'td_post_theme_settings', true);
$buffy ='';
//source
if (!empty($postsettings['td_source'])) {
$source_url = '#';
if (!empty($postsettings['td_source_url'])) {
$source_url = $postsettings['td_source_url'];
}
if (!empty($postsettings['td_source'])) {
$buffy .= '<i class="fa fa-external-link" title="Source"></i>';
}
}
return $buffy;
}

And this to /includes/modules/td_module_10.php:

<?php echo $this->get_source_and_via();?>

Is used to work, but after the update it doesn’t anymore…

Bogdan B.
tagDiv Staff

Hello,

Sorry but the new cloud library templates were not tested in a multi-site environment
Please try the cloud template in a non multi-site and see if you still get the errors mentioned.
it could simply be a plugin conflict as I see a mention of a plugin called wp-explorer that could be providing the error.

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!

Sijpkens
Participant
#0

Hi,
On https://international-agriculture.com I use a child theme. Twice this week the settings from Theme Panel have been reset. The first time I managed to fetch export settings from a back-up, but now I’m lost.
What can be the issue and (more important) how do I prevent it from happening again?

angellkarina
tagDiv Member

Good day! Help me, please, again
We use List products with an attribute shortcode, before the view was like this http://prntscr.com/kgqlja the size of the miniatures a small. Today I added a child theme to the site, then I saw that the display was like this http://prntscr.com/kgqm40 Miniatures are large and climb on the side bar. The child theme was removed, but the display was not normal. How can this be fixed?

infmedia
tagDiv Member

The problem is that style.css include style for all modules and blocks even if I use only one block type. The file style.css is 1.1MB (900K minified): very big! Is possible to dynamically generate the css only for the used block or template? The theme ionMag have additional block and modules in external plugin and for this reason the style.css file is only 450K (340KB minified). In newspaper theme the file td_config.php is 900KB and takes 0.2 seconds to execute (on my VPS). My question: is possible to make the theme “modular” so I can decide which modules or blocks to enable in order to reduce the size of every page of the site?
Alternatively, it would be sufficient to have a minimal theme with only one block/template/module type and add other type, if necessary, in the child theme with the wp_booster API.
Is possible to have a “minimal” version of the newspaper theme?

Thank in advance.
Excuse me for my bad English.

MountainDewAddict
tagDiv Member

I took a look and the gallery didnt look for as it did on your first screenshot, on 3 different browsers (desktop).
Disabled the said Plugin (WP Spamshield) and tested, still the same result (nothing changed on desktop, nothing working on mobile).

I deinstalled and deleted the whole Newspaper theme, child-theme and all plugins – downladed the newest version (9.0) from Themeforest.

I then tried the “Safe Option for jQuery” on my caching-plugin (WP-Rocket).
That got the gallery back working on mobile, but im still having the following problem:
https://drive.google.com/file/d/1TYUm9HX4cz1oZQi5pI_HSWMEos1i3KnE/view?usp=sharing

This appears to only happen on smaller resolutions tho – as you can see on a higher one (notice the resolution above) it seems to work:
https://drive.google.com/file/d/1jEtaMxzCz244a2CUoDi8Za-Y4kE4qTK8/view?usp=sharing

TravelDudes
Participant
#0

The issue: Is there a way that a user can choose a specific „page“ to add content to?

More specific:

I want to relaunch my (Drupal) travel website with the NewsPaper theme.

So the content is always built up on specific country pages and a community is submitting the content.

The idea is to use the main menu, probably with “pages”, to choose a destination (Europe, Spain).

Then each article should have to choose one or more topics (sights, food, activities) which would be shown through different blocks. My idea was to use the Categories for that.

For example, there is an article about “Top Sights in Barcelona”.

Europe (page) – Main menu
– Spain (page) – Main menu / child menu beneath Europe
– – Barcelona (page) – Main menu / child menu beneath Spain
– – – Article “Top Sights in Barcelona” (post) with the category (sights)

As Travel Dudes is a community, it’s important that submitting content is user friendly & very easy.

The user should be able to choose the destination (continent & country), but also in a different widget/box the topics (sights, activities, adventure) when they submit a post.

So there should be two different fields to submit that info:

– choose destination (continent / country)
– choose topic (sights, food…)

I can only see the categories widget. Is there a way that a user can choose a specific „page“ to add content to?

Simion C.
tagDiv Staff

Hi,

That file is not supported to be modified in a child theme
https://forum.tagdiv.com/the-child-theme-support-tutorial/
It is a critical file of the theme. Best you do not modify it in any way (or make a backup if you do), or there could be problems. Try to optimize the website by other means, instead of removing code from the theme files.

Why exactly do you want to delete the blocks and modules files? You can use any block type you want in pages, only those will be loaded. If you want to optimize more, maybe try and use fewer block types with same modules
https://forum.tagdiv.com/theme-blocks-modules/
Reduce the number of blocks with pagination as well.

Also check the theme requirementsr guide for a proper functionality
https://forum.tagdiv.com/requirements-for-newspaper/

Thanks

infmedia
Participant
#0

Hi,
I’m using the last version of Newspaper.
The file “td_config.php” is very huge and very slow to load.
How I can remove from the child theme the unused block, module to speed up the loading?
(I think is better to have the additional block, module, template in a separate plugin).
Thanks in advance.
Giovanni.

Simion C.
tagDiv Staff

Hi,

So the child theme is creating problems? What design is affected by the child theme? If you disable the child theme, is everything working properly?

Code in child themes at some point may not work, the main theme files will be modified by us eventually, so your modifications may not work properly or at all. In this case the code will have to be adapted. Go over the code used in the child theme and modify where there is a problem.

dhvanesh
Participant
#0

Earlier I used child theme and used visual composer and custom coding to design the pages. But now I’m designing site from scratch using tagdiv composer. However, I don’t see new design implemented properly because of child theme. How can I remove child theme to get new design implemented. or how to inherit new design using child theme?

Please help

Viewing 25 results - 7,901 through 7,925 (of 12,866 total)