Search Results for 'child theme'

    No search results were found in Documentation!

Results from the Forum
themesic
Participant
#0

I noticed that after importing a demo, its CSS is still loaded there.
I was wondering wheres the right place to remove this call, from the child theme, since I need to minimize requests and we already loading a dynamic css file there, in which we can integrate the css code from the demo.

ML
Participant
#0

Hey guys,

Thanks for the great support so far !

I have a question regarding the 2 files : editor-style.css and td-config.php.
How can I modify them and use child them to add my new customization ?

Shall I just create /newspaper-child/include/td-config.php or how do we proceed ? I read your child theme documentation but those files are not mentioned.

Thanks for your help.

ML
tagDiv Member

Hi Calin, I follow up on this topic as I want to achieve the same result as 3ftDeep but I have problems to make it work.

I understand child theme and custom css no problem. But I have problem to make the custom format appear on the Format Menu.

Can you confirm it’s possible to basically add only this :
td_api_tinymce_formats::add('td_text_highlight_test22',
array(
'parent_id' => 'td_text_highlight',
'title' => 'Test22',
'classes' => 'test22',
'inline' => 'span'
));

In this file : Newspaper-Child\includes\td_config.php (where td_config.php only has the code above ?)

Calin
tagDiv Staff

Hi sathyavcs,

Wen you make theme update the theme files are override, if you want you can try to do this in child theme
Child theme support -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

-> https://forum.tagdiv.com/topic/loop-ad-behaviour/

Thank you for your understanding.

Simion C.
tagDiv Staff

Hi,


@Mercurial
the module used by the loop 2 element is located inside the cloud library plugin
https://www.screencast.com/t/AYh78gWrDSY
Plugin files cannot be modified in a child theme, so any modifications to them will be lost after a theme update when all the plugins are updated. Old versions of the plugins cannot be used with a newer theme version.

Thanks

Calin
tagDiv Staff

Hi,

If I understand correctly you want to change the color for the last element from main menu , if is so please add the below custom css in Newspaper>Theme Panel>Custom code>Custom css
.menu-td-demo-header-menu-container li:last-child a{
color: red;
}
.menu-td-demo-header-menu-container li:last-child a:hover{
color: green;
}

https://www.screencast.com/t/3uwE8uUb
Also you can change the above colors.
Hope this will help you to achieve what you want.

Thank you.

zekavr
tagDiv Member

Where to add this code? I use child theme, to put in style.css or …?

staticman
Participant
#0

Hi,

If we wanted to have any sub menu items showing by default in the mobile view (so the

    list appears expanded), what would be the best / cleanest way of achieving this in a child theme?

    Thanks!

    P.S it would be nice if this could be an option within Theme Panel…for smaller sites it would be great.

Xplodsports
Participant
#0

I am getting this error:

Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.

I have loaded the theme to wp themes but it keeps telling me it’s not there. I checked the file manager on my server and it is in the themes. Do you have a step by step guide?

I figured it out.

mwbarican
Participant
#0

Hi,

I’m planning to add a “Last updated [date]” line together with the published date on posts. Would anyone be kind to help out on what file should I modify on my child theme and how it should be done?

Thanks a bunch!

devy
tagDiv Member

Thanks @fikrizaky2711

I am using a Child theme. Would I need to create a new header.php file in my child theme?

Calin
tagDiv Staff

Hi,

If you made the customize in child theme, or in Custom code, the setting/code will be keep, but if you change in the theme file then you’ll need to make the customization again.

Also please make sure that you make full backup before update, and clear all cache after you make the update.

Thank you for your understanding.

Simion C.
tagDiv Staff

Hi,

Code entered in the theme panel will be saved in the database, so updating the theme will not affect it in any way.

Maybe double check your code and make tests, it should work same as before
https://www.mitchcanter.com/twitch-conditional-plugin/
https://github.com/thatmitchcanter/twitch-conditional

Try to enter the code in the header template directly, where the ad should appear. Multi-purpose header styles are in the composer plugin so you would have to enter the code there
https://www.screencast.com/t/wLznd0aIWpl
These modifications will be lost when the theme/plugin is updated however. That will be the case for the parts/ads file, unless you modify this one in a child theme.

Thanks

Max Mile
Participant
#0

Hi!
As stated here (https://forum.tagdiv.com/topic/3x-logo-retina-subcategory-button-directly-article/#post-264152), I am trying to edit style.css file, but website do not reflect my new code.

That’s because index.php file has these links:

<link rel=’stylesheet’ id=’td-theme-css’ href=’/wp-content/themes/Newspaper/style.css?ver=8.8.2′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’td-theme-child-css’ href=’/wp-content/themes/Newspaper-child/style.css?ver=8.8.2c’ type=’text/css’ media=’all’ />

So it can not read the style.css file.

How can I resolve this?

Thanks for your kelp

klein_stephanklein
Participant
#0

Hey ho again…

Thanks for all of your help.

The solution with the childtheme and the modified header-style.php is working flawlessly. I got the changing header logo for the is_page and the is in_category function (With 4 different logos).

But there is still a little problem with that. The thing is that there are some posts, who are in multiple categories. For example category1 (with headerlogo 1) and category2 (with headerlogo 2).

If I visit for example a page or a category page where the posts are, the logo is doing just fine, but if I click on a post and want to view the single post, the head always shows the headerlogo1 of category1 (I guess it has something to do with the alphabetical order of my categories).

Headerlogo1 in this case isn’t wrong, because the post is in this category as well.
But when I am visiting category2 and click on a post I want to have the head showing headerlogo2 and not headerlogo1.

I hope you’ll get my point.

How can I influence the headerstyle, that wordpress knows from which page I am coming from and displays the correct logo?

Is this possible at all?

Thanks in advance

Calin
tagDiv Staff

Hi,

Please add this custom css to in the Newspaper>Theme panel>Custom code>Advanced cod Phone
.tdc-row:first-child{
padding: 0 0 0 0 ;
}

https://www.screencast.com/t/ImFgD4cAFZ

Thank you.

Simion C.
tagDiv Staff

Hi,

Previously in an older theme version that code was automatically removed when the author box was disabled in the theme panel post settings.

But this resulted in Google structured data problems (missing author), so now disabling the author box still loads the required data.

If you want to remove that code or parts of it you can find it here (the file can be modified in a child theme)
https://www.screencast.com/t/YFe091f5

Thanks

Simion C.
tagDiv Staff

Hi,

You could add the respective code in the post template files
https://www.screencast.com/t/egaeEq6MFkXo
Opening a post template file you can see it’s structure.

Try adding that code below the bottom social sharing section if that is where you want it to appear, then check in a post that uses the post template where you make the modification. These default post templates can be edited in a child theme.

Thanks

klein_stephanklein
tagDiv Member

Hey ho again…

Thanks for all of your help.

The solution with the childtheme and the modified header-style.php is working flawlessly. I got the changing header logo for the is_page and the is in_category function (With 4 different logos).

But there is still a little problem with that. The thing is that there are some posts, who are in multiple categories. For example category1 (with headerlogo 1) and category2 (with headerlogo 2).

If I visit for example a page or a category page where the posts are, the logo is doing just fine, but if I click on a post and want to view the single post, the head always shows the headerlogo1 of category1 (I guess it has something to do with the alphabetical order of my categories).

Headerlogo1 in this case isn’t wrong, because the post is in this category as well.
But when I am visiting category2 and click on a post I want to have the head showing headerlogo2 and not headerlogo1.

I hope you’ll get my point.

How can I influence the headerstyle, that wordpress knows from which page I am coming from and displays the correct logo?

Is this possible at all?

Thanks in advance

chayton
tagDiv Member

Hi thanks, I ended up doing a combination of things to make it work. I hooked in to change the amount of posts displayed and display in alphabetical order, then modified the archive in my child theme so that if it’s that post type display the content, then I also had to tweak the CSS. Whew! But it’s all working good now.

I do have a request though for a future update – if any post (or post type) doesn’t have comments enabled, then the comments in the meta info should be off by default in all of the archives and search and modules etc. Would that be possible to incorporate?

Max Mile
tagDiv Member

Hi.
I tried to put my custom css code into the file style.css in my child theme, but Newspaper do not like this move.
Do I have to insert custom css code in style.css of parent theme? But what about upgrade?

Catalin
tagDiv Staff

Hi,

All of the extra features which were added from your will load when you update the theme if you do not use a child theme. If is not what you mean, provide more details.

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.

Thank you!

Simion C.
tagDiv Staff

Hi,

The image box elements doesn’t have such a setting. You would have to modify this elements and replace the existing “rel” parameter (in a child theme if possible)
https://www.screencast.com/t/HXc5gCjl

Or keep the existing value and add the “nofollow” next to it. That might work, can’t say for sure, more research is needed
https://stackoverflow.com/questions/1878657/multiple-values-for-rel-attribute

Thanks

Catalin
tagDiv Staff

Hi,

1)You need to use a bit of CSS code for that.

div.entry-crumbs, div.entry-crumbs a {
color: red;
}

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

2)Try the code below and place it in Theme panel -> Custom CSS area.
.td-category-header .td-pulldown-filter-list{
background-color:red;
}
.td-category-header .td-pulldown-filter-display-option {
background-color: red;
color: green;
}
.td-category-header .td-pulldown-category-filter-link {
color: green;
}

The result is here -> https://www.screencast.com/t/58COoyQ5UMc
3)Try the code below ->

.td-pulldown-filter-display-option li:nth-child(5) {
display: none;
}

See resulsts:https://www.screencast.com/t/Vd62Z5zk

Hope this helps!

Thanks.

Viewing 25 results - 7,601 through 7,625 (of 12,866 total)