Search Results for 'child theme'

Results from the Forum
Berbi
tagDiv Member

Hi Chris,

Thanks for these infos. Indeed my site dramatically slowed down after we passed the style in Child folder. We did this because every time we had to update the theme, it was a nightmare to isolate the custom design….

Thanks for your help.

Magnus
Participant
#0

So basically I messed up everything on a pretty important site. I moving three files from a child theme to the actual theme, and accidentally ticked the functions.php file and copied that over as well. That gave me the white screen of death. I tried just inserting a blank new functions.php file, but that did not fix it.
I am wondering if I need a backup or if it is possible to insert some sort of stock functions.php file. Please answer asap 🙂

simchris
tagDiv Member

TagDiv speed booster is included in the /plugins/ folder with your purchased theme download from Themeforest.

Also note, that using child themes may not always be advisable as it’s a CSS redirect, and may slow down your site slightly.

Obviously you would have checked your site before/after with both Pagespeed Insights and perhaps GTMetrix to see the actual impact technically.

Erythros
Participant
#0

Hello,

This is how our current menu looks like. I would like to use 2 different colors. I marked a zone which I would like to set a color (let’s say green) and pink the right side.

I am fine with doing some custom coding, but I couldn’t figure any way of doing this on my own. Would it be possible to get some CSS suggestions. If this requires a structure in the HTML structure, is it possible to do it in the child-theme?

There is the website, should it be required for inspection.

Thanks!

kingryad
tagDiv Member

It’s ok, I find the answer, it doesn’t work with the child theme for some reason !

Bogdan B.
tagDiv Staff

Oh…I thought you meant this forum. If you have a bbpress forum on your site and cannot edit your posts, then please try to disable all plugins except visual 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 functionality of the theme.

Thank you!

Catalin
tagDiv Staff

Hello saucemonsters,

If you want to remove this effect you should use the code below and place it in Theme panel->Custom CSS area.

The code is ->

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

The result is here -> https://www.screencast.com/t/OFhAVMyquZht

Thanks for the message!

Berbi
Participant
#0

Hi there,

I am in an urgent need of understanding why my trafic droped by more than 50% after moving some style code.

Here is the story : the initial designers had put all custom styles in the Newsmag folder, obliging me to a lots of work when Tagdiv was releasing a theme update.

I therefore asked a developper to move all custom style code from the Newsmag folder to Newsmag Child, wich required to change some code in the header. The changes went on live at the end of january, and suddenly my trafic droped from 5th february on.

So I am trying to understand what happenned, in oder to get back on the track.

And my questions are :

1- do you have any known issue on SEO ranking after moving custom style code from Newsmag to Newsmag Child ?

2- according to your experience, can you name wich mistake could upset google after the moving of a style code ?

Thanks in advanced, and my appologies if the questions are nonsense :), I am just trying to find a lead to get my trafic back.

phoenixrichard
tagDiv Member

Follow the instructions for Headers on this page about child theming for Newspaper: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Then, on line 52 of top-menu.php change the following code:

… get_author_posts_url($current_user->ID) …

to the following:

… bp_core_get_user_domain($current_user->ID) …

Now the user links to their BuddyPress profile instead of their author page.

phoenixrichard
tagDiv Member

For future posters who may want to link the user link on the top bar to the user’s buddypress account, it is a very easy change.

Follow the instructions for Headers on this page about child theming for Newspaper: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Then, on line 52 of top-menu.php change the following code:

... get_author_posts_url($current_user->ID) ...

to the following:

... bp_core_get_user_domain($current_user->ID) ...

Now the user links to their BuddyPress profile instead of their author page.

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except visual 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 functionality of the theme.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

Sorry but td_module will not work from the child theme. There are only a few files from the wp-booster functions that will work from the child theme. You will have to make this modification in the main theme.

Thank you!

mexa
tagDiv Member

Hi Bogdan,

Thank you for answering.

I disabled all plugins except visual composer, but the problem is still there.
After this check, I checked the custom coded I added and I cleared my cached.
At last I switched from my child theme to the official theme of Newspaper.

The problem is still there…

Edragon
tagDiv Member

Custom css was first thing I checked. Disabled it and it did not change anything. And I have not yet changed anything in child theme, it’s still same default child theme. Anyway just in case I switched to default newspaper theme and it’s still same. Not tested plugins yet, but it’s easy to test. And since you guys have same problem, it means we both are using same plugin then (jetpack, SEO plugins <- this two had around same time new update).

For info I am also using News Magazine demo, this one had layout (top and other stuff) the way I liked and thought that way I need to make less changes, mostly some small stuff like colors.

Anyway like I wrote, since your own NEWS MAGAZINE (maybe others too, not looked enough around yet) DEMO looks after update exactly same way, it means that you guys have exact same issue. 😉 So it would be awesome if you guys look more into it and fix it in first hand. 😉

https://demo.tagdiv.com/newspaper_magazine/2015/09/24/td-post-gigabyte-geforce-gtx-950-review-pricing-is-everything/

About the article bottom “more articles”, the way it was before was pretty okay. But since it’s changed at the moment. I think that the way Newspaper demo have it is pretty nice ->

Selected one text -> white, not selected one -> black. Except line and background color would be nice if they are black. But default one was actually pretty acceptable too. But since I changed ACCENT (is it the right/proper place to change your link color?) color this one of course changed too. Anyway I think black would be better since all other titles around the web are using black too.

Also, since I already looked again Newspaper demo, more and more I look it, this font what you guys are using for titles there are pretty nice and I would like to use it for my web titles too. At the moment I am using for titles News Magazine demo default for titles. Which font you are using in Newspaper demo and where in theme panel is the proper way to change it?

And another thing I noticed after update. I am not 100% sure at the moment is is it because the latest update or I was just lucky to not see that issue before. One article picture appeared to be bigger than others. by default all thumbnails should be exactly same size there.

Kind Regards,
Edragon

  • This reply was modified 9 years by Edragon.
Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except visual 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 functionality of the theme.

Thank you!

Bogdan B.
tagDiv Staff

Unfortunately there is no update proof solution for any at all customization made to the theme code. No custom code is update proof. Even the child theme is not update proof.
Thank you!

Bogdan B.
tagDiv Staff

Hello,

Well the mobile theme is a plugin and plugins cannot be handled through the child theme. You will have to make the modifications in the main theme though. or you can simply hide the footer with css like so:
.td-mobile-footer-wrap, .td-mobile-sub-footer-wrap{
display:none!important;
}

You can add the code in the theme panel-> mobile theme-> custom code section

Thank you!

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except visual 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 functionality of the theme.

Thank you!

phoenixrichard
Participant
#0

Hi,

I have created a child theme and have attempted to link the author to their BuddyPress page rather than their author page.

It is as simple as changing the following on line 125 of themes/Newspaper/includes/wp_booster/td_module.php

... get_author_posts_url($this->post->post_author) ...

Can be changed to the following:

... bp_core_get_user_domain($this->post->post_author) ...

Unfortunately, overriding the parent function does not seem to work as expected. I notice that the function get_author() is wrapped in an abstract class called td_module()

I know that you have suggested 301 redirects to accomplish this, but that seems like a very messy solution that will put unnecessary burden on the server. Also, 301 redirects are a poor SEO practice.

Is there a way to extend the td_module() class and then implement a function override for get_author() ?

Thank you for the excellent theme!

Simion C.
tagDiv Staff

Hi,

There could be multiple causes for this to happen, a plugin, a child theme or some custom css. An easy fix would be to use this css code for the related block only and fix the background and border color and padding but I do not understand exactly how you want it to be, you could modify the code if it is the case, and also add a background color or change the font color. You should use these classes in this case – https://www.screencast.com/t/hHs0eMu0 which you can identify with your browser inspector – https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

.td-related-title.td-block-title {
border-color: black!important;
}
.td-related-title.td-block-title a {
color: black!important;
padding: 8px 12px;
}

This is the result – https://www.screencast.com/t/vUQTuRBrRkhttps://www.screencast.com/t/0RMasts2fktZ
Thanks

silviarehn
Participant
#0

Hello, my menu load first total back (demo load menu) and than the right background.
Could someone help me to change the right code att CSS childtheme?
http://www.magazinefeminina.com/

koberlin
tagDiv Member

Thanks, that resolved it, but please add my request to add such settings to admin or to include file in child theme.

guitoun3
Participant
#0

Hi!

In the theme panel I disabled the footer. On desktop the footer is correctly removed.
But on my smartphone the footer is still showing.

After looking in Newspaper/mobile/footer.php I saw that the td-mobile-footer-wrap div isn’t surrounded by a condition like in Newspaper/footer.php

if (td_util::get_option('tds_footer') != 'no') {
td_api_footer_template::_helper_show_footer();
}

I’ve added this condition around the div in the Newspaper/mobile/footer.php and now it’s working nicely.

I tried to copy and add modification in Newspaper-child/mobile/footer.php hopping it will override the parent mobile footer. But that’s not the case.

Is there a way to do it through a mobile child theme?

gcamara
tagDiv Member

Hello Catalln

Can you tell me which parameter to pass to show only the primary category? I have looked at td_module.php from the child theme, but I can display the primary category.

Thanks for the help.

Simion C.
tagDiv Staff

Hi,

I see that you are using a child theme and the text logo properties are set there using custom classes – https://www.screencast.com/t/QRXIacZn so you must edit those properties in the child theme css file in order to change them.

Thanks

Viewing 25 results - 10,051 through 10,075 (of 12,866 total)