Search Results for 'child theme'

    No search results were found in Documentation!

Results from the Forum
mikadim
tagDiv Member

Hi Anamaria,
Ι have solved the problem with the help of the support of the snax poll plugin.
We used the hook below in the child theme and the problem solved for the desktop version. I need your help so i can apply the same thing in the mobile version (mobile theme plugin).

add_action( ‘pre_get_posts’, function( $query ) {
if ( ! function_exists( ‘snax_get_quiz_post_type’ ) || ! function_exists( ‘snax_get_poll_post_type’ ) ) {
return;
}
if ( is_admin() ) {
return;
}
// Skip for pages.
if ( $query->is_page() ) {
return;
}
// Skip for attachments.
if ( $query->is_attachment() ) {
return;
}
// Skip for custom post types.
// Only “posts” page (is_home) has to be changed.
if ( $query->is_post_type_archive() ) {
return;
}
if ( $query->is_tax() ) {
return;
}
$post_type = $query->get( ‘post_type’ );
// Normalize.
$post_type = ( ” === $post_type ) ? array( ‘post’ ) : (array) $post_type;
// Skip if query is not for “post” type.
if ( ! in_array( ‘post’, $post_type, true ) ) {
return;
}
$post_type[] = snax_get_quiz_post_type();
$post_type[] = snax_get_poll_post_type();
$query->set( ‘post_type’, $post_type );
} );

Thanks,
Katerina

Calin
tagDiv Staff

Hi,
The code that you report that is set in child theme is not coming from our theme, that code was set there by someone. By default the functions from child theme has only this code in it https://i.imgur.com/RRP7mBY.png
Thank you!

luke-tt
Participant
#0

Hi,

I tested the ‘Start SEO data optimization’ on Yoast SEO and it failed. The support said it was something at my side.

My Hoster said:

The error reports that ‘js_search_filter’ function wasn’t found. I see it was called by the Theme in this file: wp-content/themes/Newsmag-child/functions.php
There were no other errors or warning in PHP or Apache log during the process.

and gave me this info:

{…}
​component: "Plugin: wordpress-seo-premium"
​file: "wp-includes/class-wp-hook.php"
​key: "72ad45a5e822047537248a8e135cb3a8"
​line: 292
​message: "call_user_func_array() expects parameter 1 to be a valid callback, function 'js_search_filter' not found or invalid function name"
​stack: Array(4) [ "do_action_ref_array('pre_get_posts')", "WP_Query->get_posts()", "Yoast\\W\\S\\I\\A\\Admin_Columns_Cache_Integration->fill_cache()", … ]
​type: "warning"
​<prototype>: Object { … }

What can I do to call the js_search_filter in the functions.php?

Thank you in advance and best regards,
Luke

Bettina
tagDiv Staff

Hello!

Please make sure that the theme and the plugins are up to date.
Please take a look for this advice before updating: https://forum.tagdiv.com/topic/action-required-please-read-how-to-update-to-the-newspaper-theme-v-10/
I recommend you to make a backup and update plugins and the theme via file transfer, so that you don’t face any error: https://forum.tagdiv.com/how-to-update-the-theme-2/

Please make sure that all the requirements are met as you can see here: https://forum.tagdiv.com/requirements-for-newspaper/ ; You will have to first start looking for a plugin conflict. Please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.

If you follow the steps which are presented in this tutorial here: https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also, to increase the page speed you can check these similar topics for more solutions:
https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/
https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
Also, our developers are working to improve the page speed, so we hope in short time we will deliver the improvement in the future updates.

Thank you for your understanding!

Anamaria
tagDiv Staff

Hi,

This problem can appear when is a plugin conflict. Please make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv plugins (theme plugins), also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.
Also, if you are using Cloudflare, please make sure that is set as in our guide https://forum.tagdiv.com/cloudflare-cdn/ , you need to disable the Rocket Loader.

Let me know the results!

Thank you!

Bettina
tagDiv Staff

Hello!

Sometimes, the issue can be from a plugin conflict(check also if you have WP Bakery and uninstall it), that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.
Let us know about your results!

Thank you!

Bettina
tagDiv Staff

Hello!

From what I understand, the issue can be from a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.
If this problem is not solved after that, then we need to take a look and see what happened there.
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cPanel url and credentials
– a link to this topic in order to identify you
Our team will take a look!

Thank you!

Anamaria
tagDiv Staff

Hi,

Please check if you use the last version of WordPress 5.6 with the last theme version Newspaper 10.3.9.1, also make sure that the theme update was done correctly =>https://forum.tagdiv.com/how-to-update-the-theme-2/ (delete the files of the theme, not override).
Also, check if you don’t have a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using a child theme or cache plugin, deactivate them, clear all cache and try again.
Please check to be sure you don’t have an object cache on the host.

Thank you!

Anamaria
tagDiv Staff

Hello,

Please make a test only with tagDiv plugins, and see if the problem persists. Also, if you are using a child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.

Let us know the results!

Thank you!

Breinblik
Participant
#0

Hi!
I need to have different post types and i’m not sure if it would be sufficient to just place regular posts under a different category. If i would decide to use custom post types what would be the best solution and most compatible with your theme? Do i need to make changes in a functions.php in the child theme or perhaps a plugin?

Thanks for your help!
– Jacco

Bettina
tagDiv Staff

Hello!

Please make sure that all the requirements are met as you can see here: https://forum.tagdiv.com/requirements-for-newspaper/ ; You will have to first start looking for a plugin conflict. Please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.

Also you can try to remove and re-install the tagDiv Composer plugin.

Let us know the results.

Thank you!

Anamaria
tagDiv Staff

Hello,

The issue can be from a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using a child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.

Thank you!

Anamaria
tagDiv Staff

Hello,

Is possible to be from the firewall or security module which blocks admin-ajax.php request.
If you don’t use a security plugin, please ask your host about this, maybe you have a security module that blocks this.
If you use a plugin like Wordfence please set it in learning mode.
Also, make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv plugins, also if you are using a child theme or cache plugin, deactivate them, clear all cache and try again.

Hope this will help you!

Thank you!

petrvrana
tagDiv Member

Hi Calin,
thank you for your willingness. That sounds great!

My original path:
/wp-content/plugins/td-composer/legacy/Newsmag/parts/header/top-menu.php

I create new path in theme child:
/wp-content/themes/Newsmag-child-theme/parts/header/top-menu.php

But changing code isnt work in this new file. Where did I do a mistake?

Thank you Calin for your advice.

Maverick10

Anamaria
tagDiv Staff

Hello,

Please make a test only with tagDiv plugins and see if the problem persists, it can be caused by a plugin conflict, also if you are using a child theme or cache plugin, deactivate them, clear all cache and try again.

Let me know the results!

Thank you!

Bettina
tagDiv Staff

Hello!

Please make sure that the theme and the plugins are up to date.
Please take a look for this advice before updating: https://forum.tagdiv.com/topic/action-required-please-read-how-to-update-to-the-newspaper-theme-v-10/
I recommend you to make a backup and update plugins and the theme via file transfer, so that you don’t face any error: https://forum.tagdiv.com/how-to-update-the-theme-2/
Sometimes, the issue can be from a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.
If this problem is not solved after that, then we need to take a look and see what happened there.
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– a link to this topic in order to identify you
Our team will take a look!

Thank you!

Anamaria
tagDiv Staff

Hello,

Please make a test only with tagDiv plugins and see if the problem persists, it can be caused by a plugin conflict, also if you are using a child theme or cache plugin, deactivate them, clear all cache and try again.
Also, make sure that all theme settings are like in our guide ->
https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.

Let me know the results!

Thank you!

Bettina
tagDiv Staff

Hello!

The issue can be from a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.
If this problem is not solved after that, then we need to take a look and see what happened there.
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– a link to this topic in order to identify you
Our team will take a look!

Thank you!

Bettina
tagDiv Staff

Hello!

The issue can be from a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.
If this problem is not solved after that, then we need to take a look and see what happened there.
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– a link to this topic in order to identify you
Our team will take a look!

Thank you!

Anamaria
tagDiv Staff

Hi,
Is possible to be from the firewall or security module which blocks admin-ajax.php request. Please verify the console for error while saving the settings on the Theme Panel, usually, it displays a 403 or 404 error.
If you don’t use a security plugin, please ask your host about this, maybe you have a security module that blocks this.
If you use a plugin like Wordfence please set it in learning mode.
Also, make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv plugins, also if you are using a child theme or cache plugin, deactivate them, clear all cache and try again.

Hope this will help you!

Thank you!

Anamaria
tagDiv Staff

Hi,

To change the website width, you need to make sure that you don’t have set a background color/image in the Theme Panel because this makes your website boxed. Make sure this option is disabled => https://www.screencast.com/t/ejiNPCBF
To set a page to full width, you’ll need to edit it with tagDiv Composer like this -> https://i.imgur.com/i5IUJ9E.jpg add or select a row and stretch it after your needs -> https://i.imgur.com/WKYebPX.jpg -> https://i.imgur.com/TO1BZ3M.png -> https://i.imgur.com/Yq8UCv3.jpg
Also, if you set full width if it does not appear so, it may be a problem from a plugin that makes the site boxed, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using a child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.

Hope this helps you!

Thank you!

Anamaria
tagDiv Staff

Hello,

In most cases, this problem occurs because you have the latest version of WordPress with an older version of the theme.
Please check if you use the last version of WordPress 5.6 with the last theme version Newspaper 10.3.9.1 (if you have a theme version older, than NewsPaper 10.3.9 and you have the latest WP version 5.6, tagDiv Composer not work) and check to see if the problem persists.
If you need to make an update, before please make a full backup to all files and the database, in case something goes wrong. => https://forum.tagdiv.com/how-to-update-the-theme-2/
Also, if the problem persists please check if you do not have a plugin conflict, please deactivate ALL plugins except tagDiv plugins, also if you are using a child theme or cache plugin, deactivate them, clear all cache (also from your browser) and try again.

Let me know the results!

Thank you!

Anamaria
tagDiv Staff

Hello,

The issue can be from a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using a child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.
Also, if it is still a problem, please send a link to your website to inspect the problem and some screenshots.

Thank you!

Calin
tagDiv Staff

Hi,
According to our guide that file should work in child theme, because the theme functions for Newspaper was moved in tagDiv Standard pack and for Newsmag was moved in tagDiv Composer https://prnt.sc/10fvlrp
Thank you!

Bettina
tagDiv Staff

Hello!

Sometimes, the issue can be from a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.

Thank you!

Viewing 25 results - 2,076 through 2,100 (of 12,866 total)