Search Results for 'child theme'

Results from the Forum
Catalin
tagDiv Staff

Hello RachelG,

You can make these changes in the child theme but please notice that to next future update the client will have to update the child theme that comes bundled with our theme and re-implement this customization.

Thanks.

RachelG
tagDiv Member

Thanks. Can I change that code on the child theme or does it have to be changed in the parent theme? I want my client to be able to update the parent theme without my intervention through the Envato Toolkit.

Catalin
tagDiv Staff

Hello valerianidesign,

Please notice that our theme was fully tested in this regard before to be released and you should not have these type of errors. As you can see, the problems appear on your side and probably is caused by your settings.
So, first of all, please try to do a full backup to your data, according to this documentation here -> https://codex.wordpress.org/WordPress_Backups to rule out the way can loose all your data from your database and then try to do a fresh install only VIA FTP -> https://forum.tagdiv.com/how-to-update-the-theme-2/ because this is the surest method in this case. In the next step, you will have to disable ALL your plugins and leave just Visual Composer to active -> https://forum.tagdiv.com/how-to-update-visual-composer-plugin/ (for Newspaper 7 -> Visual Composer 4.11.2), clear all your caches, purge all CDN files if you are using CDN and install only the plugins that come bundled with our theme and rule out the conflicting plugins and if you are using the Child theme, please try to switch to the main theme. So, please try to bring your old website to the default settings to rule out all the potential errors which could appear when you customize your side.

Hope this helps and let us know how it goes!

If your need further assistance in this regard, and if your problem is still there after these tips, please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can further inspect your setup page. Also, please provide your FTP access so we can deeper inspect it closer your website files. You have to provide the link to this topic on the mail so we can identify you.

Thank you for your understanding!

pumpt
tagDiv Member

Hi Andrei / Support,

I found the source of my issue, and it ended up being the child theme in my case. I hadn’t updated the child theme files to the new ones that came with Newspaper v7. So I updated the child theme, and then copied over all of the custom code I made in the theme files.

Thank you for you help!

Cheers,

Catalin
tagDiv Staff
HELP - reply

Hello wawat,

Please keep in mind that all your panel settings (including Custom CSS code from your Custom Box) are loaded in your database. Also, if you have some additionals customizations through code in theme files, child theme, please notice that these will be overwritten by the new update of the theme and you will loose all your additional customizations. Usually, before doing an update, we recommend doing a backup to avoid losing the data. If you have directly done an update for the latest version of the theme, please notice that most likely you have lost all your customizations.

If is not what you mean, please provide more details.

Thank you for your understanding!

bowman9991
Participant
#0

Hi,

My mobile menu with icons is displaying strangely (using the mobile theme and default responsive display). I’ve tried removing all custom CSS code and cleared caching, etc. but the problem persists.

Basically, any main menu item that has sub-menu children, displays the icon above the text (screen shot below).

Icon problem

Also, all the sub-men items are misaligned as shown here:

Sub menu display problem

Can you think of anything that would be causing this?

Thanks,
John

Bogdan B.
tagDiv Staff

1) A child theme is not update proof unfortunately. The files will still have to be replaced and customization re-added if the file itself gets updated in the main theme. Think about it. A file gets updated with new code and you serve the old version from your child theme. It will not work properly. This is the thing about customization there is no update proof way of doing it.
2) Yes, you need to first copy over the child theme folder from the base theme archive and then create the same path for the file you want to customize as the guide shows.
3) + 3a: In that case you simply copy over the file from the root directory into the root directory of the child theme.
4) + 4a i;m not sure exacly what userpro should do as we have not tested it. I cannot provide any blind solution as I’m not sure what it is supposed to tie in. Sorry but we can’t provide any solution for this. In order to add the file to the child them, you need to maintain the file sctructure and create a /parts/header/top-menu.php in the child-theme folder
5) and 6) unfortunately these are untested plugins so we are not sure exactly where to add the code. Unfortunately this represents customization that falls beyond what support can offer you/
7) You can find the list of modified files here: http://tagdiv.com/td_deploy/Newspaper/changed_files_6.6_7.0.html Each of the files on this list were modified.
8) The mobile theme will not be affected by the child theme in the classical way as it uses a different file structure and different files. It will not use the same smartlist files as the desktop version: http://screencast.com/t/8ElxdYM2AlvV
8)a. There are 2 mobile versions now. One is the standard version and one is the mobile theme. Every setting for the mobile theme can be found here: http://screencast.com/t/fGer1I2jJzN6 so settings for the mopbile theme are made here. If you deactivate the mobile theme this panel will disappear.
8)b. I send you an email for it.
9) As I wrote above, you only need to create the file structure replicating the one in the main theme and copy your files there. As a note on the child theme all of the wp-booster folder will not work from the child theme. any modification to files in this folder will have to be made in the main theme.

Thank you!

sudhanshu15
tagDiv Member

Thanks for the help. Yeah!! it was appearing because of child theme.

Catalin
tagDiv Staff

Hello sudhanshu15,

I suppose that you are referring to the left side, right here -> http://screencast.com/t/lEXiBMn82 Please notice that this behaviour comes from your untested plugins. I have checked your source page and I have notice that you are using a lot of untested plugins, including and WP Rocket plugin. Please try to disable it, because it seems to be a problematic one that causes a lot of unknown issues in theme. Also, try to switch to the main theme (now you are using the child theme), clear all your caches and test it again. The normal behaviour for your theme should not contain that background over your background image.

Hope this helps and let us know how it goes!

Thank you for your message!

Catalin
tagDiv Staff

Hello MShayto9,

1)If you want to do automatically update, please notice that you have to use the Envato Toolkit. For more information about this regard, please check our documentation here -> https://forum.tagdiv.com/how-to-automatically-update-newspaper-theme/ Also, please notice that we recommend doing an update via FTP because this is the surest method in this regard.
2)Please notice that all your customizations from your panel (Custom CSS area box ->after your update, please re-save this from your panel) and panel settings will remain exactly the same because these were loaded in your database. Also, if you have another custom modifications through code, (for example in the child theme or theme files) all of these will be overwritten with the latest update. Usually, before updating, we recommend our customers to make a backup for all of the customizations because this is the safest way to not lose data.

Thanks.

Andrei L.
tagDiv Member

Hi

I’ve checked your site and found a js error which breaks search feature on mobile devices: http://screencast.com/t/xs7hTuArn
Try to deactivate all plugins except Visual Composer, deactivate the child theme, clear all caches, purge cdn files if you’re using then test again.

Thanks!

ilnegozio
Participant
#0

Hi there,

First of all, please accept my apologies all of these.

Please allow me to ask a few things about customization of the new Newspaper version 7.0.

1. Since I am doing some customization on my site and based on what I had read on the documentation and on your rules that any update of the Theme we should try again to re-implement the code for our customization, so I decided instead of doing that again and again is to add the Child Theme, that any update of the Theme still the customization of site will be there right? Please advise if this the best option? Hope it will.

2. (If Serial 1 is not the best option, leave this.) Please advise if this is correct to Add a Child Theme via FTP I will just add the Folder “Newspaper-child” located in /code folder? base on this Tutorial Link to add it under “wp-content/themes” right? by just dragging it via FTP? same on this Image Link.

3. Author Box Card replace it with USERPRO shortcode.
Filename:
/wp-content/themes/Newspaper/loop-single-12.php – this is my style number

ShortCode to add:
<?php echo do_shortcode('[userpro template=card user=author]');?>

Original String Structure:

<?php echo $td_mod_single->get_social_sharing_bottom();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>

Modified String Structure: Please advise if this is correct syntax code?

<?php echo $td_mod_single->get_social_sharing_bottom();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo do_shortcode('[userpro template=card user=author]');?>
<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>

3.a. If I am using a Child Theme I just copy the Filename then create a directory structure path in the child theme as in the theme and paste the Filename based on this Tutorial Link aight?

4. Sign In/Join Desktop view popup version using USERPRO shortcode
Filename: wp-content/themes/Newspaper/parts/header/top-menu.php

ShortCode to add:

<div class="td-login-wrap">
' . do_shortcode('[userpro template=login]') . '

Original String Structure:

//<span class="td-sp-ico-logout"></span>
echo '<ul class="top-header-menu td_ul_logout">
<li class="menu-item">' .
get_avatar($current_user->ID, 20) . 'ID) . '" class="td_user_logd_in">' . $current_user->display_name . '' .
'
<li class="menu-item">
<i class="td-icon-logout"></i>' . __td('Logout', TD_THEME_NAME) . '

';
} else {

echo '<ul class="top-header-menu td_ul_login"><li class="menu-item">' . __td('Sign in / Join', TD_THEME_NAME) . '<span class="td-sp-ico-login td_sp_login_ico_style"></span>';
}
}//end login window

Modified String Structure:

Please advise how to add the correct syntax code.

4.a. Same on Serial 3.a. question.

5. Sign In/Join Mobile View using USERPRO shortcode
Filename:
Please advise where to modify it?

ShortCode to add:
Please advise the correct syntax code for this.

' . do_shortcode('[userpro template=login]') . '

Original String Structure:

Please advise where to modify it?

Modified String Structure:

Please advise how to add the correct syntax code.

5.a. Same on Serial 3.a. question.

6. FB Comments instead of WP comments
Filename:
wp-content/themes/Newspaper/header.php
wp-content/themes/Newspaper/loop-single-12.php

ShortCode to add:
header.php

<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=XXXXXX”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>

loop-single-12.php

<div class="fb-comments" data-href="<?php echo get_permalink($td_mod_single->post->ID); ?>" data-width="100%" data-numposts="5"></div>

Original String Structure:
header.php


</head>

<body <?php body_class() ?> itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WebPage">

<?php /* scroll to top */?>
<div class="td-scroll-up"><i class="td-icon-menu-up"></i></div>

<?php locate_template('parts/menu-mobile.php', true);?>
<?php locate_template('parts/search.php', true);?>

loop-single-12.php

<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>

<?php echo $td_mod_single->related_posts();?>

<?php
} else {
//no posts
echo td_page_generator::no_posts();
}

Modified String Structure: Please advise if this is the correct syntax code?
header.php


</head>

<body <?php body_class() ?> itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WebPage">

<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=XXXXXX”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>

<?php /* scroll to top */?>
<div class="td-scroll-up"><i class="td-icon-menu-up"></i></div>

<?php locate_template('parts/menu-mobile.php', true);?>
<?php locate_template('parts/search.php', true);?>

loop-single-12.php

<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>
<div class="fb-comments" data-href="<?php echo get_permalink($td_mod_single->post->ID); ?>" data-width="100%" data-numposts="5"></div>
<?php echo $td_mod_single->related_posts();?>

<?php
} else {
//no posts
echo td_page_generator::no_posts();
}

6.a. Same on Serial 3.a. question.

7. If there is a new update of the Theme like for example: header.php as we added a Custom Code on version 6.x.x has 92 Lines + 2 Lines on our Custom Code both on Main Theme and Child Theme then a new update came version 7.0 header.php has 98 Lines, since our Child Theme had originally 92 Lines, are we going to update also our Child Theme structure based on the latest one from 92 Lines to 98 Lines then + 2 Lines on our Custom code?

8. Mobile Theme Plugin – if I install this plugin would the Child Theme modification will reflect to this? I mean I made changes in Serial 3, 5 and 6 will it reflect also? Please advise.

8.a. Whats the difference between Theme Panel background color for mobile vs Mobile Theme Plugin Settings background color? Which one should I make the changes if this Plugin is installed?

8.b. Gradient color – may I ask the exact hex number of this color? Link Here

9. Am I allowed to create directory structure and add the following filename on the Child Theme incase all of the above are possible to my site.

>loop-single-12.php
>top-menu.php
>For Serial 5 filename
>header.php

I have sent my Login Credentials via mail incase you may need it with the same Subject here.

Regards

Andrei L.
tagDiv Member

Hi

Try this css in theme panel > custom code > custom css to change the color and position for pagination: http://screencast.com/t/nnZDncZh

.page-nav:first-child > div{
background-color: black;
}
.page-nav{
float: right;
}

Thanks!

beermoney
tagDiv Member

They say to deactivate all your plugins, clear your cache and CDN files, and then go into the Theme Panel and click on the Save Settings button.

I tried all these options and it didn’t work. The only way I was able to make it work was by hiding it via CSS. That purple gradient is actually the Mobile Menu background.

Here is the CSS code that I used to hide that background on the Desktop and Tablet versions of the site, while still having it show for Mobile Phones.

/* -==========================- DESKTOP -==========================- */
@media only screen and (min-width:1024px) {
.td-menu-background:before { display: none; }
}

/* -==========================- TABLET -==========================- */
@media only screen and (min-width:640px) and (max-width:1023px) {
.td-menu-background:before { display: none; }
}

If using a Child theme or editing the main theme, place that CSS at the very bottom of the Stylesheet (style.css). Again, this was the only way I was able to remove it while still allowing it to work on phones. Hope this helps you.

As you can see…by hiding it on the desktop version, it no longer shows. https://i.imgsafe.org/ef2118f.jpg

  • This reply was modified 10 years by beermoney. Reason: Add Screenshot
jciview
tagDiv Member

I found a way by just eliminated the top posts from each category and adding the shortcode to the proper template in my child theme:

<?php echo do_shortcode('[vc_row][vc_column][td_block_big_grid_3 category_id="' . $thisid . '"][/vc_column][/vc_row]'); ?>

Catalin
tagDiv Staff

Hello nucreative,

First of all, please ensure that you are correctly installed the new update via FTP because this method is most safety way in this regard. Also, please ensure that you are using the latest version of Visual Composer (4.11.2), Social Counter (4.0) and also, you have to use the latest version of child theme that comes bundled with our theme. Try to add all your customization from your old child theme to the new child theme and check the results.

Hope this helps and let us know how it goes!

Thanks.

nucreative
Participant
#0

Plugin could not be activated because it triggered a fatal error.

Cannot redeclare class Mobile_Detect in /home/mummysginfund/public_html/wp-content/plugins/td-mobile-plugin/Mobile_Detect.php on line 29

I am using a child theme.

Catalin
tagDiv Staff

Hello nycinsider,

I suspect this behaviour happens due that you have custom code for your font and this will apply after the default code that is loaded from style.css and this font maybe is too large for your menu items and because of this will wraps on the two line. Also, if you are using the child theme and you have the latest update of our theme (Newspaper v.7.0), please ensure that you have updated and the child theme which comes bundled with our theme.

Hope this helps and let us know how it goes!

Thanks.

simchris
tagDiv Member

That’s usually why I try it with default WP theme on your current location; if it doesn’t work with the default WP theme, it won’t work with TagDiv theme either, regardless of whether main or child theme. SO, it’s part of debug process, to eliminate one possible culprit.

It’s not a job, it’s an adventure.

🙂

nycinsider
tagDiv Member

Chris:
Thank you very much. I’ve already made use of some of your very thoughtful and helpful posts on these forums.

Since I am copying over the exact functions and rss template from prior theme, where I know it works, then the reason it’s not working now is specific to this theme. Even if my new feed were not working on this theme, then wouldn’t this code remove the feed all together?

remove_action( ‘wp_head’,’feed_links’, 2 );
remove_action( ‘wp_head’,’feed_links_extra’, 3 );

I see you even posted that code (with additional lines – which I tried as well) to remove the feeds from the header. I’ll try it on the main theme functions file and see if that works…since you’ve said it may not work on NP child theme.

Thanks.

beermoney
tagDiv Member

I had the exact same issue this morning when I updated to v7.0. I couldn’t for the life of me figure out what the heck this gradient bar was on the left side of the screen. I hid it via CSS, and then figured out about an hour later that this was the background for the new mobile menu. I ended up just adjusting my CSS as I couldn’t figure out as to why this was showing on the Desktop version. Here is what I used in the CSS of my Child theme:

/* -==========================- DESKTOP -==========================- */
@media only screen and (min-width:1024px) {
.td-menu-background:before { display: none; }
}

/* -==========================- TABLET -==========================- */
@media only screen and (min-width:640px) and (max-width:1023px) {
.td-menu-background:before { display: none; }
}

This hid the menu from showing up on the Desktop and Tablet versions of the site, but still showed up on the Mobile Phone version. If you don’t want it hid on the tablet version, then just leave that out and just use the top section for Desktops. This was the only way that I could figure out how to remove it as I couldn’t find any info on it.

  • This reply was modified 10 years by beermoney.
  • This reply was modified 10 years by beermoney. Reason: Added Code Tag
simchris
tagDiv Member

Not theme specific, so that’s why you got a “canned” answer from the staff here. They don’t always have time to fix unrelated WordPress issues or do custom programming for you, since that isn’t part of the theme — hacking WordPress is not theme related, so sometimes better done elsewhere or by Google Search.

Just as FYI, for most stuff like that — in my own experience — it often does not work with child themes, which is why I personally don’t use child themes due to the various mish-mash of redirects and over-rides.

Tip for hacking WordPress:
a) start with default WP theme; add your custom function to default theme to get it to work.
b) Then when you have it working, fold it into the commercial theme.
c) If it doesn’t work in child theme, use only the primary theme. Or, make sure you’re adding the custom function in the *right place* for it to work.

Not sure that helps.

Adding an additional custom RSS feed is very easy; “replacing” the built-in RSS feed is a bit more complex, as you’ve discovered.

nycinsider
tagDiv Member

Yes, I read your canned answer at least a dozen times on this forum. Clearly you have a lot of users with RSS questions and you think a plugin or that WP Beginner article can help. And for most people, that isn’t the case.

So I’m hoping someone can actually help me.

Transitioning to NP theme
and I know this doesn’t fall under typical support but I am really hoping someone out there can help me. I have a custom RSS feed in my current site I’m trying to copy over (working on a staging server – not sure if that makes a difference).

I have added a functions.php to my child theme and added this code:

// First remove all the RSS feed links from wp_head using remove_action

remove_action( ‘wp_head’,’feed_links’, 2 );

remove_action( ‘wp_head’,’feed_links_extra’, 3 );

// Then reinsert the main RSS feed by using add_action to call our function

add_action( ‘wp_head’, ‘reinsert_rss_feed’, 1 );

// This function will reinsert the main RSS feed *after* the others have been removed

function reinsert_rss_feed() {

echo ‘<link rel=”alternate” type=”application/rss+xml” title=”‘ . get_bloginfo(‘sitename’) . ‘ » RSS Feed” href=”‘ . get_bloginfo(‘rss2_url’) . ‘” />’;

}

//NEW RSS FEED function copied from previous developer

remove_all_actions( ‘do_feed_rss2’ );

add_action( ‘do_feed_rss2’, ‘acme_product_feed_rss2’, 10, 1 );

function acme_product_feed_rss2( $for_comments ) {

$rss_template = get_stylesheet_directory() . ‘/feed-rss2.php’;

if( file_exists( $rss_template ) )

load_template( $rss_template );

else

do_feed_rss2( $for_comments ); // Call default function

}

add_filter( ‘the_content_feed’, ‘my_rssfooter’ );

add_filter( ‘the_excerpt_rss’, ‘my_rssfooter’ );

//NEW RSS FEED function copied from previous developer

function my_feed_thumbnail($content) {

if (is_feed() && has_post_thumbnail()) {

return get_the_post_thumbnail( get_the_ID(), ‘thumbnail’ ) . $content;

}

return $content;

}

add_filter(‘the_content_feed’, ‘my_feed_thumbnail’);

add_filter(‘the_excerpt_rss’, ‘my_feed_thumbnail’);

//NEW RSS FEED function copied from previous developer

add_filter(‘excerpt_length’, ‘my_excerpt_length’);

function my_excerpt_length($length) {

if ( is_feed() ) {

return 1500;

} else return 0;

}

————————————————————
then, also added a standard feed-rss2.php template to my child theme

But I still can’t get it to work. The feed on the new site is the standard RSS feed, but that’s not what I want. I need my custom RSS feed.

THANK YOU in advance to anyone who may be able to help.

wildmercury
tagDiv Member

Fully understand the need to update a child theme, but most developers will advise on any changes required to child themes in their readme or revisions. Anyway, we’ve got nothing in our child theme functions apart from a minor revision to the author element. Nothing that affects page layout. We’ve recreated the child theme, but that has made no difference.

We’ve got the social counter to show by uninstalling/reinstalling, but the counters have reset to zero.
We still have the display issues on chrome for any user that has not cleared their cache.
VC will show in Firefox now, but still fails to load on Chrome, even with cleared caches/cookies, unless the divtag mobile theme is installed.

Bogdan B.
tagDiv Staff

Salutare,
Te rog incearca din nou sa faci upodate-ul pentru ca nu ne-am intalnit cu astfel de erori pana acum. https://forum.tagdiv.com/install-via-ftp/
Incearca te rog si fara child theme si fara plugin-uri (disable la toate exceptand visual composer si clear la cache)
Grid-ul din tema mobila functioneaza ca cel de pe pagina de categorii. Nu se pot filtra resultatele ci sunt afisate doar cele mai recente posturi. Aceasta decizie a fost luata pentru a avea viteza cat mai mare pe mobile.
Plugin-ul poate fi dezactivat si atunci varianta desktop va fi afisata si pe mobil ca si pana acum. Meniurile noi vor fi prezente si fara tema mobila instalata.
Multumesc.

Viewing 25 results - 11,026 through 11,050 (of 12,866 total)