Search Results for 'child theme'

Results from the Forum
NP Comm
Participant
#0

Hello,

I am wondering if I am able to create custom blocks without them being wiped out during the next theme update.
I have created a custom block or two but noticed they must be registered in the td_config.php file. As you know, this file is unable to replaced within my child theme. Is there another way to create a custom block or module? Am I overlooking something? Thanks!

wpdiv
tagDiv Member

Hi

Before that how to disable default Google Fonts via Child Theme? Does Less_files folder does supports via child theme?

wpdiv
tagDiv Member

@Bogdon

Thanks for your heads up. But do you know there are lot of threads have been answered before my thread which have been posted after my thread? Every time when we are asking for solution, they simply replied that “let we add your suggestion in to-do list or hire someone to customize the theme. We are not seeking for any advanced features, asking you to how to customize the existing features through child theme due to many SEO factors. (Now a days Google have no mercy)

I have requested you to provide ‘disable the Google Fonts option’ via theme options panel nearly 6 months before. Not only me, there are various threads which suggest you to add option to disable Google Fonts.

But nothing considered till date like the thread posted above.

Typical Posts page is just more than 2 MB who using your Newspaper theme without making any modifications. Your CSS file alone has 650K +. Most of the WordPress powered websites pages including all assets does not exceed your CSS file size alone.

Do you think is this okay for SEO friendly websites. Slower connections certainly did took plenty of time to load a post page which used your theme. In SEO perspective, there are many factors against the Best SEO practices. Google Fonts in one of them and still lot to follow.

Alin [tagDiv]
tagDiv Staff

Hi,

You can use it in the code without any issues if you want that(referring to Taboola).
Also you can do the same with the fb comments shortcode like Emil suggested above, just use do_shortcode function in the post template file that you use – http://screencast.com/t/0QxLVm3F23
A solution for your modifications to not be overwritten would be child theme, here you can read more about it(also the supported files) – https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

I added this suggestion on our todo list, as I cannot provide a quick solution for this. It requires many modifications and it is not an easy task. The developers will consider this for futures updates, but I cannot promise you anything regarding it, the developers will take the final decision.
If you really need this now I suggest to hire someone to do it for you from sites like – http://studio.envato.com/
Also the wp admin panel settings cannot be overwritten via child theme.

Thanks!

wpdiv
Participant
#0

Hi

I am looking to add custom fonts options through newspaper theme. But when i navigate via custom font options page, it has only option to configure .woff font files. http://prntscr.com/8mv1rn

As you know well some browsers may not support .woff files.

1. How can i add options to setup other font types such as .ttf, svg, eot and so on?
2. Tell me which files i need to hack via child theme to achieve the above goal?

If you are not suggesting above technique, suggest me the new technique without editing core theme files to add custom font options.

Expecting your kind reply

With regards
Selvam.S

Bogdan B.
tagDiv Staff

Hello Jethron,

There is no option to hide specific category titles. There is an option to remove all category titles though: http://screencast.com/t/eDMrVMtk
Unfortunately the theme settings are not THAT specific, but you can use a custom css to do it.
There is just one problem. You cannot select a category tag by name. It can only be selected by number: first one, second one, third one…so you can remove a specific category but only on that position. If in one post the category you want to hide is displayed as the second one and on other post it is the third it will not work and it will hide another category you do not want hidden.
Bottom line: if you use this code, make sure the category you want to hide has the same position in every post.

.td-post-title .td-category li:nth-child(2){
display:none;
}

Thank you.

doucare1971
tagDiv Member

Would be nice to have this implemented by default for social login on the modal. Then we wouldn’t have to add each time we update theme or have to use child theme if we did not want to. On Newsmag theme too.

Alin [tagDiv]
tagDiv Staff

Hi,

When you update the theme files will be overwritten and you need to re-add your custom modifications to the files.
Using the child theme you can add the modifications there, off course for the supported files, this is an alternative to have to modifications also after you update the theme in future.

Thanks!

lixutong
tagDiv Member

I did all your suggestions and located the problem for that is was caused by child theme.

The problem fixed after I install child theme you provided. I created a child theme by plugin previously and caused the problem.

Thanks you.

Bogdan B.
tagDiv Staff

Hello Miriam,

We have not tested if it will work, as version 3.8 is a bit old and we only tested updating from version 4.
You could try to update to 4 and then follow our update guide(make sure to back-up), but our suggestion is to delete the old version, install the new one, and rebuild your site without using the script.
Newspaper 6 is a whole new theme that is released for free for all of our existing customers so an update to version 6 may cause the same issues as switching to another theme (but we did try to maintain compatibility where ever possible).
Always make a full backup of your current installation – https://codex.wordpress.org/WordPress_Backups and then 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/how-to-update-the-theme-2/ also update the plugins that come with the theme files from the /plugins folder. Also you have to update the child theme if you use it, please note that old files customization or custom css will not work with the new version and you will have to adjust and re-add them.
Bottom line is that newspaper 6 is a whole new theme built from scratch.

Hope this helps.
Thank you!

Bogdan B.
tagDiv Staff

Hello,

We have a pretty comprehensive tutorial on child themes in our documentation explaining each file and what it does. You can read all about what files need to be placed in the child theme and what can be modified here: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you!

jonnybalfour
Participant
#0

Hi,

I am trying to add a piece of code from an ad network called ‘revcontent’, this code needs to be added to the single.php file, it basically makes 9 ads appear below every article.

But after doing tests its defiantly not a plugin conflict but a theme conflict, its making the site become unresponsive and just freezes eventually.

Do you have any suggestions?

The code is:

<div id=”rcjsload_12ff30″></div>
<script type=”text/javascript”>
(function() {
var rcel = document.createElement(“script”);
rcel.id = ‘rc_’ + Math.floor(Math.random() * 1000);
rcel.type = ‘text/javascript’;
rcel.src = “http://trends.revcontent.com/serve.js.php?w=11240&t=”+rcel.id+”&c=”+(new Date()).getTime()+”&width=”+(window.outerWidth || document.documentElement.clientWidth);
rcel.async = true;
var rcds = document.getElementById(“rcjsload_12ff30”); rcds.appendChild(rcel);
})();
</script>

And my website is: http://thebrizzle.com

Thanks,
Jonny

adriatikxhelo8
Participant
#0

Hello to everyone.

I just installed child theme like 3 days ago.
i have take it from parent theme only these:
1)style.css
2)functions.php
3)comments.php
4)header-style1.php

My web site is: http://www.storypickers.com

I dont’t have any problem or something like that, but i was wondering do i need to take more files
from the parent theme?

For example if i want to modify any code or something to my web site, they tell my to put a code at header.php
But i don’t have a header.php. So, i need to take the header.php and put it at my child theme, or i need to put the code inside to the parent them to header.php???

Waiting for your reply wish to you king regards

Bogdan B.
tagDiv Staff

Hello jethron.

The theme’s tag list does not have CSS classes to target a specific list element. It can be done using this code:

.td-tags li:nth-child(8){
display:none;

But it will always hide your 8th tag, weather it’s yahoo or something else. You can change this number to the tag you want (the first one, the second one, etc.) You cannot target a tag by it’s name. The easiest way is to remove the tag completely from WordPress.

I hope this helps.
Thank you!

Bogdan B.
tagDiv Staff

Hi Hash,

Newspaper 6 is a whole new theme that is released for free for all of our existing customers so an update from 4 to 6 may cause the same issues as switching to another theme (but we did try to maintain compatibility where ever possible).
Always make a full backup of your current installation – https://codex.wordpress.org/WordPress_Backups and then 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/how-to-update-the-theme-2/ update also the plugins that come with the theme files from the /plugins folder. In the “how to update” guide is specified that you will have to run the script that will import from database your settings, will change the shortcodes… Also you have to update the child theme, please note that old files customization or custom css will not work with the new version and you will have to adjust and re-add them.

Hope this helps!

sejpost
tagDiv Member

This helps. Two followups:

1. For #1, where do I go to modify the max-height from 400px to something bigger?

2. For #1, do I access that file from my wordpress dashboard or via my host?

Lastly, if I modify this .block-mega-child-cats setting, will it get overwritten if I do a theme update to the next version of Newspaper? I have Newspaper 6.2

Andrei L.
tagDiv Member

Hi

The code from child theme’s functions file is executed in addition at the one from parent theme so make sure that the functions written in child theme have priority higher than the ones from parent theme, also provide more details about the error that you get if this doesn’t help.

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Unfortunately all the files modifications will be lost as the files will be overwritten when you will update. You could try to use child theme for future – https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks!

ghostmi
Participant
#0

I activated the child theme, but when I enter my customization in the file functions.php I get a fatal error php on the site …

here’s the code that I add after the basic template functions.php on child


// funzioni personalizzate
// Setup Admin Thumbnail Size
if ( function_exists( 'add_theme_support' ) ) {
add_image_size( 'admin-thumb', 100, 999999 ); // 100 pixels wide (and unlimited height)
}
// Thumbnails to Admin Post View
add_filter('manage_posts_columns', 'posts_columns', 5);
add_action('manage_posts_custom_column', 'posts_custom_columns', 5, 2);

function posts_columns($defaults){
$defaults['my_post_thumbs'] = __('Img Evid');
return $defaults;
}

function posts_custom_columns($column_name, $id){
if($column_name === 'my_post_thumbs'){
echo the_post_thumbnail( 'admin-thumb' );
}
}
add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
return 'news@cinefilos.it';
}
function new_mail_from_name($old) {
return 'Cinefilos.it';
}

add_filter( 'jpeg_quality', create_function('', 'return 50;' ) );

remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );

add_filter('deprecated_constructor_trigger_error', '__return_false');

// fine funzioni personalizzate

thank you 🙂

Shuriken
tagDiv Member

Hi, I can send you child-theme folder from that project, but I’m afraid it will not help you much. I’ve hardcoded a lot of modifications there (it means, that these modifications will break the theme if used on other site). So you sure will need decent php skills to use it for your site.

Alin [tagDiv]
tagDiv Staff

Hi,

You have this issue because you use an old version of the theme and it will display only http videos – http://screencast.com/t/yTSWwQHf
Here is how the code looks on version 6 of the themehttp://screencast.com/t/lO2SZ8nJu3 so I suggest to upgrade to version 6 – https://forum.tagdiv.com/how-to-update-the-theme-2/
Please note that the old customization to the theme file and css code or child theme(you will have to update als the child theme) will not work, you will have to adjust them for the new version as the code was rewritten for Newspaper 6, practically it is a new theme.

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Unfortunately the data source file cannot be overwritten via child themehttps://forum.tagdiv.com/the-child-theme-support-tutorial/ you will have to change this in the main theme.

Thanks!

charliezed
tagDiv Member

I have updated the theme to version 6.5. I have created a Newspaper-child folder and installed the demo css file from the code folder. I then placed customized styles into the theme folder, cleared all caches, etc. But I’m having the same problem. Only the customized header works. The other styles have no effect.

refer to: charliecholla.com (content tested with styles)

stylesheet: http://www.charliecholla.com/wp-content/themes/Newspaper-child/style.css?ver=6.1c

Doug

jonybigude
tagDiv Member

Well, this is unfortunately not working. Changed the value to 0, uploaded it to the child theme and nothing happened. Uploaded it to the parent theme and still nothing. I dubbel checked if the post was checked as sticky and it is… I am using a multisite installation, that should not be affecting this, right?

help?

Viewing 25 results - 11,651 through 11,675 (of 12,866 total)