- NewspaperChild Theme Support
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to Update the Newspaper Theme
- NewspaperWhat’s Included in the Newspaper Theme Package
- NewspaperFlex Block Settings Guide
- NewspaperPrimary Category: Build a hierarchy for your website
- NewspaperBreadcrumbs
- NewspaperHow to Install Newspaper via FTP
- NewspaperHow to Install Newspaper via WordPress
I am afraid to say that this time the answer completely ignored my question before the code 🙂
What you say is what I have done already, but I want to know if I can do it without hacking the core.
If I simply copy these lines into my child functions.php it gives me an error, and I would like to know if there is a solution to overwrite it from my child-theme?
Take off one more time, maybe in the second attempt you’ll save me again :))
Hi,
Please edit the functions.php file from Child-theme and add like here: http://screencast.com/t/yN9NzaOd
Thanks! We will fix this in the next update.
Hi Sofian,
try this: http://screencast.com/t/2bMgzLrArllP
the code:
locate_template($template_path, true);
Yes… some of the implementation of the core is not child theme friendly 😐 but we are working on it.
-
This reply was modified 11 years by
Radu.
Hi guys,
Using a Child Theme with Newspaper 4, I have copied throught the FTP access the new theme folder but something went (very) wrong. Right now I cannot see nothing, not the site and the WP interface, so I cannot using the plugin to restore the previous version.
Could you help me?
Thanks,
g—
OK, I’ve done a successful backup. So the website is ok. How could I upload the theme without trouble?
Hi Alin,
I’m using iPhone 6+ and Safari to check the site and your demo site – http://demo.tagdiv.com/newspaper/ is fine except for the Big Grid.
I’ve switched to the main theme and not the child theme but it’s still the same 🙁
Hi,
I will investigate this and I will try to add a class_exists for the three classes in the next version (1-2 weeks) for the following classes td_menu, td_tagdiv_walker_nav_menu, td_nav_menu_edit_walker . I did not managed to fully understand the consequences of such a change now because we are all replying to support requests 🙂 but I think it will allow full menu customization. (or if we include the files with locate template – that should also work).
Do your modifications now and after that you can use a diff tool like WinMerge to bring your changes to the new version in the child theme / plugin.
-
This reply was modified 11 years by
Radu.
I am trying to update my newspaper theme but i am having problems. The 1st problem is that eventhough i have my child theme installed i left the main theme activated so when i activate i see errors.
Is there a way you can help make the child theme exactly as my main so i can update it ? Plus the auto update doesnt work
1) If we add the line
@import url(“../Newspaper/style.css”);
at the style.css of the child theme
2) if we edit the functions.php file in the child theme and remove the lines
/* —————————————————————————-
add the parent style + style.css from this folder
*/
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style(‘td-theme’, get_template_directory_uri() . ‘/style.css’, ”, ‘6c’, ‘all’ );
wp_enqueue_style(‘td-theme-child’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘td-theme’));
}
then the child theme works ok with BigGrid… I don’t know if thats ok to do….
-
This reply was modified 11 years by
neakriti.
1. How do I erase the excess pink space from the top of footer to snap closer to logo and same with bottom of footer to snap closer to social icons?
I think those areas have some padding due to the possibility to include some ads in those spaces. It looks like the height of the footer is hardcoded to be 1164×389. It is element ‘td-footer-wrapper td-footer-template-4’. You could change it in your style sheet.
2. How do I make the social icons in footer menu a bit bigger? And how do I make the hover colour on those icons a solid purple colour instead of the colours constantly changing?
The footer social media icons are designed to be 40×40. You’d have to change the styles too. Look at the following elements in your CSS: td-social-style-2 and td-icon-font. If you’re going to make several edits to the stylesheet, consider making a child theme.
3. Chris’s Pagespeed Custom Code no longer works (the one that you post at the end of the functions.php – will he be coming out with a new one that works with Newspaper 6?)
Have you upgraded to v6.1 of the theme?
4. How do I move the bottom share options (at the end of my posts), above my taboola advertisement so that they appear right at end of article?
Go to your dashboard. Theme Panel>Post Seetings>Sharing. You should see toggles to move the social sharing buttons.
5. Is there a code so that my custom ad 1 will appear underneath (or above) the author box?
I’m not sure if it always inserts it below ads. I think the author box is placed there via the posts template. You can attempt to mess with the posts templates to see if another one places the author box higher. Go to dashboard. Theme Panel>Post Settings>Default Post Template.
Yup, issues still there with child themes.
Hello,
I have just install the fresh new update and i still have the problem with the Big Grid 2. It work’s with the the theme, but when i use the child theme i have the same problem.
I hope the update will fix this point. 🙁
Now it worked. Thanks!!
I think the mistake was to try to apply through the theme child.
Could you tell me how I can apply the same scheme for the ad sidebar, please?
Hi,
How do you change the version number of the child themes css file?
It always appears as style.css?ver=x and doesn’t seem to take into account either the theme version number or file last modified time.
Thanks,
Rob
Hi there,
Thank you for your continued help. I would like to show custom post types grid (like the category mega menu) in the mega menu and hence need to edit td_menu.php and td_menu_back.php. I know how to, needs a load of changes. I want to know if these files are also available through the API method or the child theme.
I am glad if I can also help a bit. Yet, do you have a short idea what I could try as a quick workaround?
Actually for testing it is enough to delete the content of the file … no need to check the sourcecode afterwards, because if the page still shows, the file is definetily not taken from the child-theme 🙂
I have tested with style1 as well, same situation. Didn’t test other templates though, guess it is valid for all of them.
Which is actually an impossibility, isn’t it? Isn’t WP itself handling the child-theme thing? Did you “bend” something there? 🙂
Hi,
I have also checked this and seems to be an issue with that post template in child theme. I have added this on our issue list and it will be fixed as soon as possible. Sorry for inconvenience!
Thanks for reporting!
Hello,
I want the 1068×580 version to be cropped center center, not top as it is by default.
I found this in includes/td_config.php
So here i can change it, BUT i would like to avoid a core hack of course.
How can I overwrite this in the functions.php of my child-theme?
(I am unfamiliar with this whole td_api thing. In the old version I see it was solved in the “traditional” way with add_image_size();, but this is here is overcoming my knowledge 🙂
td_api_thumb::add('td_1068x580',
array(
'name' => 'td_1068x580',
'width' => 1068,
'height' => 580,
'crop' => array('center', 'top'),
'post_format_icon_size' => 'normal',
'used_on' => array(
'Slide - 3 column'
)
)
Hi,
You could try via the theme API, check the API documentation – https://forum.tagdiv.com/the-child-theme-method/
You use the same hook, call the same property and assign an empty array.
Thank you, Emil G.
I have a really strange thing here. My posts are all set to style9, and I copied single_template_9.php into my child-theme folder, but no matter what I edit there, the output stays the same. It is like this file is not taken into consideration. I also added teststrings to the HTML output and checked in the source code, it is simply not there. Editing page.php or the loop-single-9.php does show up in the output, so the child-theme works, and apparently it uses the style9 template, but I can not edit it.
Do you have a clue? To recreate, please simply copy the file into your childtheme and change something, for example <article id=”444test444″…
then call a post that has style9 and check the source code … still shows its good old post-XX ID, so definetely this file is not read. But then what else is used?
My aim is to use the td_1068x580 as featured image instead of 1068×0, and for this I need to change it in the post template, which should be exactly this one.
Thanks for a hint on where I find what I am searching for 🙂
Roney,
They already replied to getting a fix for this.
@Alin [tagDiv]
Jun 18, 2015 at 4:41 pm
Hi,
We will release an update today or tomorrow(depends when it will be approved by themeforest) to fix unique articles issue and also more problems that were reported like speed booster, child theme.
Thanks and sorry for inconvenience!
Hello, i am very fresh to this theme but managed nearly all I needed so far. BUT I would like to show the featured image on my pages as I do on posts, I use post template 9 for it. Now when copying these lines
<?php
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
echo $td_mod_single->get_image('td_1068x0');
}
?>
into my child’s page.php, it gives me an error, and as i saw in the breadcrumbs, they are called different for pages then for posts, so I guess also here I need a differnent code.
How can I solve this?
Thanks for this amazing theme
Sofian
Hi,
We will release an update today or tomorrow(depends when it will be approved by themeforest) to fix unique articles issue and also more problems that were reported like speed booster, child theme.
Thanks and sorry for inconvenience!
Hi,
We will release an update today to fix some issues with unique articles, speed booster, child theme..
Thanks!
Two Google webfonts are included in the main theme of Newspaper
What is the best way if I don’t want to have to Google font (or want to change the font)?
I don’t want to delete/change it in the td_config.php
Can I make some small changes in a child theme that can overwrite this?
How can I do this?
thx for the reply Marius but the speed booster is currently deactivated so the prob is not there, I fixed the other error message.
Does the slider need specific thumbs to be generated ? I currently have 0x420, 283×178,300×350,640×0 and 1021×580. btw I’m using the child theme but don’t think that causes troubles.