Search Results for 'child theme'

Results from the Forum
tripledm
tagDiv Member

I have restored Version: 6.5.1 and logo is displaying again.

We are using STYLE 8, so clearly style 8 is not setup / working properly.

PLEASE can you check as we have to be able to update the theme and we are using a child theme and have all the custom CSS in the theme panel setup.

tripledm
Participant
#0

Hello,

The logo is gone/missing after update.

I found this

.td-header-style-8 .td-header-menu-wrap-full .td-header-sp-logo {
display: none;
}

The logo is correctly set in theme options, nothing changed other than update and we are using a childtheme.

Site thesouthafrican.com

Andrei L.
tagDiv Member

Hi

Please backup the whole current theme installation as well as the database and wp install: https://codex.wordpress.org/WordPress_Backups in case something goes wrong you can get back at the old install.
Make sure you do a clean update, meaning that we recommend that you delete the old version of the theme before uploading the new one – https://forum.tagdiv.com/newsmag-how-to-update-the-theme/ update also the plugins that come with the theme files from the /plugins folder. If you’re using child theme deactivate it during the update process, switch to default wp theme.
If you use child theme for files customizations it’s a good practice to check update_log.txt file for each update and see what files had been modified so if those specific files are used in the child theme you will have to check your customizations to not break the functionality of the theme.

Let us know how it goes.
Thanks!

Bogdan B.
tagDiv Staff

Hello,
You can update your theme to the latest version by using the method described here: https://forum.tagdiv.com/how-to-update-the-theme-2/ Please update to version 6.6.2 if you updated WP to version 4.4 as this created a few error with the theme that we fixed in this version.
Please let us know if the errors are still there after updating your theme. Also update your child theme to the one that comes with the theme.
Thank you!

Andrei L.
tagDiv Member

Hi @gregy1403

The point of a child theme is to keep the customization even if the main theme it’s updated. But this is not always valid, because once in a while the child theme it’s also updated, or if the main theme pass through a major update it’s possible that some customizations not work well anymore. If you use child theme for files customizations it’s a good practice to check update_log.txt file for each update and see what files had been modified so if those specific files are used in the child theme you will have to check your customizations to not break the functionality of the theme.

Hope this help.
Thanks!

Ecrea
tagDiv Member

Hi Catalin,

Let’s see:

1. Js errors. Yes I had some errors with that, actually a lot, but I arrange it. The problem was on child theme (functions.php). Now all events with js seems to work properly.

2. I disabled all plugins except Visual Composer at first, and also updated theme to last version. Suddenly WordPress works great, so I started to enable plugins one by one and check if they cause some problems. Everything right (I didn’t enable WP-Rocket). I guessed problem was on there, but a couple hours late a new error 500 appeared on my screen.

I tell that because webpage works good during a couple of hours until crash again, maybe is a good hint for you to find out what’s happening on it.

3. I just followed your tutorial (except suhosin because my hosting doesn’t provide it). Let’s see how it works now, just after the changes have been made, web charges like lightning.

I hope this works fine, if it doesn’t, I would like share a couple of screencaptures with you because maybe some parameters on htacces o php.ini are causing the problem. For instance, php.ini had “memory_limit = 1024M
“.

I’ll track website to see if all works properly. Hope next time text us with good news.

Thanks Catalin.

philooo
Participant
#0

I don’t know if there is a place where users can share code customization so I am posting here.

I wanted to reply to this question of showing multiple taxonomy for custom post type as ‘tag_spot_taxonomy’ and ‘category_spot_taxonomy.

you can do this by:

1/modifying this file (child theme does NOT work):
Newspaper/includes/wp_booster/wp-admin/panel/views/ajax_boxes/td_panel_cpt_taxonomy/td_get_cpt_settings_by_post_type.php
search for ‘tds_category_spot_taxonomy’ and for ‘tds_tag_spot_taxonomy’
at each location change ‘td_panel_generator::dropdown’ to ‘td_panel_generator::input’

This will allow you to list your taxonomy slug in the theme page/cpt&tax/ for your CPT
Separated by comma, no spacing. Exemple : taxo1,taxo2,taxo3

2/ modifying this file (you CAN copy it in your child theme):
/newspaper/includes/wp_booster/td_module_single_base.php

replace line 185
$category_spot_taxonomy = td_util::get_ctp_option($this->post->post_type, ‘tds_category_spot_taxonomy’);
by this
$category_spot_taxonomy = td_util::get_ctp_option($this->post->post_type, ‘tds_category_spot_taxonomy’);
$arr = explode(“,”, $category_spot_taxonomy);
foreach ($arr as $value) {
$category_spot_taxonomy = $value ;
also add one }, right before the ‘} else {‘

you also need to the same for the tag locaiton
reaplce line 602 by this
$tag_spot_taxonomy = td_util::get_ctp_option($this->post->post_type, ‘tds_tag_spot_taxonomy’);
$arr = explode(“,”, $tag_spot_taxonomy);
foreach ($arr as $value) {
$tag_spot_taxonomy = $value ;
also add one } right before the comment ‘// also update …’

Hopefully you get the idea 😉

Too bad Tagdiv td_panel_generator function doesn’t offer an option to create radio selection with multiple choices, that woudl have been really clean !!!

PLEASE TAGDIV implement this code, it is really usefull ! and easy for yuo to implement now 😉

philooo
tagDiv Member

I wanted to reply to this question of showing multiple taxonomy for custom post type as ‘tag_spot_taxonomy’ and ‘category_spot_taxonomy.

you can do this by:

1/modifying this file (child theme does NOT work):
Newspaper/includes/wp_booster/wp-admin/panel/views/ajax_boxes/td_panel_cpt_taxonomy/td_get_cpt_settings_by_post_type.php
search for ‘tds_category_spot_taxonomy’ and for ‘tds_tag_spot_taxonomy’
at each location change ‘td_panel_generator::dropdown’ to ‘td_panel_generator::input’
This will allow you to list your taxonomy slug in the theme page/cpt&tax/ for your CPT

2/ modifying this file (you CAN copy it in your child theme):
/newspaper/includes/wp_booster/td_module_single_base.php

replace line 185
$category_spot_taxonomy = td_util::get_ctp_option($this->post->post_type, ‘tds_category_spot_taxonomy’);
by this
$category_spot_taxonomy = td_util::get_ctp_option($this->post->post_type, ‘tds_category_spot_taxonomy’);
$arr = explode(“,”, $category_spot_taxonomy);
foreach ($arr as $value) {
$category_spot_taxonomy = $value ;
also add one }, right before the ‘} else {‘

you also need to the same for the tag locaiton
reaplce line 602 by this
$tag_spot_taxonomy = td_util::get_ctp_option($this->post->post_type, ‘tds_tag_spot_taxonomy’);
$arr = explode(“,”, $tag_spot_taxonomy);
foreach ($arr as $value) {
$tag_spot_taxonomy = $value ;
also add one } right before the comment ‘// also update …’

Hopefully you get the idea 😉

Too bad Tagdiv td_panel_generator function doesn’t offer an option to create radio selection with multiple choices, that woudl have been really clean !!!

PLEASE TAGDIV implement this code, it is really usefull ! and easy for yuo to implement now 😉

simchris
tagDiv Member

Heh. Yeah. This is why I don’t use child themes. Makes extra work for most themes now due to all the major changes to WordPress the past year.

Best to make changes to the main files then keep track of that, and just don’t use child theme at all. Don’t even upload it.

This is only my opinion. i don’t work here.

gregy1403
Participant
#0

Hi

After 3 years of using WP I’m still confused about child theme.

We are using child theme. Everything works. Now, we have theme update, and i update main theme, correct?

Of what use is child theme, if i have to update those files too, otherwise, theme will not be updated!?

Am I missing something here?

Thank you

gmaio
Participant
#0

Hi there,
I’m able to show an advertising banner (size 970×90) on my site homepage (please see http://screencast.com/t/ZlWAdGDr1sj) and I have obtained this behaviour by modifying the file “single.php” of my Newsmag child theme; I’ve added the following code snippet:


<div class="td-container">
        <div class="td-container-border">
                <div class="td-pb-row">
                <?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
                </div>
        </div>
</div>

The custom_ad_1 ad_box contains the Google DFP tag code.
What I’m trying to do now is to show the same banner under every category
top posts grid which don’t have this banner at moment (please see http://screencast.com/t/X4fBKGQs8). How could I get it?
Tnx a lot for any appreciated help

Giuseppe

Antonio Sequeira
tagDiv Member

Hi,
It is ok now because I activate the main theme again.
The site is live so I can’t activate it with this solved.

I checked and I have the folder path correct.

I created Newspaper-child with the files you proposed on /code/ folder like it’s described here:
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Now I’ve downloaded version 6.6.1 but how can I upgrade it from 6.6 to 6.6.1

the problem I see now is on the second page, the sidebar simple disapears when the child theme is activated.

thanks

Catalin
tagDiv Staff

Hello gmaio,

Unfortunately, our theme has a list of files wich allows to do child theme. This list you can see here: https://forum.tagdiv.com/the-child-theme-support-tutorial/ Our theme will be updated continuously and the child theme files will not be overwritten.

Sorry for the inconvenience!

Thank you for the message!

Bogdan B.
tagDiv Staff

Hello,
I have checked your website and everything seems fine at the moment. The css should have nothing to do with it. It is loaded from the main theme if it’s not rewritten in the child theme. Please follow this guide to set up the child theme properly: https://forum.tagdiv.com/the-child-theme-support-tutorial/ Please make sure you keep the folder path as suggested in the guide.
Thank you!

gmaio
Participant
#0

Hi,
due to customization needs I’ve sligtly modified some theme files on the base of your indications. Therefore I created a Newsmag-child theme and put in the child theme the following files:
Newsmag/style.css
Newsmag/single.php
Newsmag/parts/header.php
and all works fine with these files after the theme update.

But I’ve also modified two other files, namely:
Newsmag/includes/td_settings.php
Newsmag/includes/wp_booster/wp-admin/content-metaboxes/ td_set_post_settings.php

which, even if existing in the foreseen path of child theme, their code patches seem not to work. Therefore, I’m forced to apply the code patches to this couple of files of the parent Newsmag theme EVERYTIME I update the Newsmag theme.
Is there a way to get these two files included in my child theme as well so that I can update the theme avoiding to redo all file modifications by hand?
Thanks a lot for any appreciated information.

Giuseppe

Antonio Sequeira
Participant
#0

Hi,

I have bought newspaper but when trying to activate your child theme, my right sidebar does not appear in the proper place but instead is moved bellow to a left side.
I imagine some missing css in the child theme?

You can check my site here http://www.abcdobebe.com (the problem is with the sidebar with google ads.
ads are 300×600)

thanks
AS

Catalin
tagDiv Staff

Hello finanztip,

Unfortunately, we do not have a specific guide to “How to create custom template” because to achieve this are required more knowledge of hard-coding and also, custom work. I suggest you make use of a child theme if you want to have a custom template on your website because, on the next update, all the code will be overwritten. You should create a custom templates using API. More details about this way can find in our documentation, here: https://forum.tagdiv.com/the-theme-api/

In this section we will present the new theme API system which brings theme customization to a new level and allows users to modify or add new elements like single templates, smart lists, thumbs, modules, blocks, header styles, category templates, footer templates.

If you are not aware of steps which you should follow to achieve this, please consider hiring a freelancer/developer to do this thing for you, because we cannot provide custom work at the moment, sorry!

Hope this helps and let us know how it goes!

Thank you!

philooo
tagDiv Member

I will second that, I am also looking to understand how to do it.
I assume I can start from one of your block and put it into the child theme ?

I am looking for a block that will show all the terms from a taxonomy 😉

exemple:
taxonomy: book author
terms: victor hugo, hemingway, proust

I would like to make a page ‘book authors’ and then list in there all the authors, so when people click on these they can go to the term page for each authors.

May be I can do it differently ?

Edward
tagDiv Member

Привет, Diniska!

Для русскоязычного сайта я рекомендую заменить полностью кнопки шаринга с дефолтных на кнопки счётчиков от Яндекса:

https://tech.yandex.ru/share/

На моём примере: я отключил показ кнопок в верху статьи через настройки темы, оставил включённые их только внизу:

В файле td_module_single.php нужно удалить эти строки:

Вставить эти:

Изменённый файл td_module_single.php сохранить в дочерней теме с сохранённым путём.

Результат:

Если я что-то сделал неправильно, надеюсь, разработчики меня поправят.

===========

English:

For Russian-speaking website I would recommend to completely replace the buttons with the default sharing buttons counters from Yandex:

https://tech.yandex.ru/share/

In my example: I have disabled showing the buttons at the top of the article via theme settings, left them only at the bottom:

In the file td_module_single.php you need to remove these lines:

Insert these:

Modified file td_module_single.php save in the child theme with saved by.

The result:

If I did something wrong, I hope the developers will correct me.

Bogdan B.
tagDiv Staff

Hello,
Unfortunately the theme.js file cannot be edited through the child theme. You will have to add the code Aling gave you in the main theme for it. Please follow this guide to see how to set up your child theme: https://forum.tagdiv.com/child-theme-support/
In this same tutorial you will find the answer to your second question. Unfortunately files from wp_booster cannot be edited through child theme.
Thank you!

simchris
tagDiv Member

Heh …. well, the short version would be … just install the main theme, don’t use child theme at all; don’t even upload it. (I don’t use child themes on ANY of our sites or client sites.) So, this way you have one set of things to optimize, manually minify, one set of functions, css, etc.

Just keep track of snippets with a map of which files/customizations you do. SO, when there is theme update you can paste in your functions.php changes into new file, for example; or if you mod the main style.css – make not of what you changed (e.g., search/replace default fonts). Use a good text editor with line numbering — so, you keep track of “I edited the hook at line 55 in file /theme/includes/td-whattheheck.php” etc.

Faster – no CSS redirect from child to parent; no mix of files, smaller to do backup of your site via FTP, blah blah blah.

So – that was short version. Long version would contain a lot of other commentary you don’t need to hear from me on this topic 😉

plamenko
Participant
#0

Hello all,
I know there were some discussions about child themes and that Chris S is against child themes… but I never got a clear answer to the question: do I really need child theme?

Let me explain my situation: I have two websites running Newsmag with child themes. In the next few days and weeks I’ll launch two more websites (one with Newsmag, another perhaps with Newspaper – but I think it doesn’t matter, right?). Since shortly I’ll be running 4 sites, I want to make my life a bit easier by – unifying them. So my questions for you would be:
1. To continue using child themes or not? i.e. should I use child themes on new websites?
2. If you think I should abandon child themes, what is the proper procedure for new website installation? Just forgive child theme and use Newsmag as the only one or? And more important question, what to do with existing websites? If I just delete child theme, what would happen? Should I do something more than just deactivate child teme?

Chris S, I’m dying to hear your thoughts… 🙂 and others opinions too!

Regards,
Plamenko

shae101s
tagDiv Member

Hey all, just me again. Ok..back to the child theme thing. What files exactly would I place in the child theme folder and where? I want to be sure I do this right. I created the page-full-blank.php file and copied the text code linked above into it, then uploaded that completed file into the Child Theme folder. But what should I do for the JS file you mentioned above?

Also how would I place the codes for hiding ads that goes into the Tag-Booster file (as mentioned in this thread) into a Child Theme so that when the main theme gets updated I don’t have to always manually re-add the codes?

THANKS!

Bogdan B.
tagDiv Staff

Hi,
Forgot to mention this but the wp_booster files cannot be edited via child theme unfortunately. We try to improve our child theme support with each update.
Thanks.

Cogdiss
tagDiv Member

Hi Bogdan,

Thanks for the response. This has worked, but only when I make the change in the main theme, rather than in my child theme. Is there a way I can make this change in my child theme?

Thanks

Hannah

Viewing 25 results - 11,451 through 11,475 (of 12,866 total)