- NewsmagChild theme support
- NewspaperChild Theme Support
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewsmagWhat’s included in Newsmag theme package
- NewspaperHow to Update the Newspaper Theme
- NewspaperWhat’s Included in the Newspaper Theme Package
- ApiThe Theme API
- NewspaperFlex Block Settings Guide
- NewspaperPrimary Category: Build a hierarchy for your website
- NewsmagCustom Post Type Support
- NewsmagInstall via WordPress
- NewsmagInstall via FTP
- NewsmagBreadcrumbs
- NewspaperBreadcrumbs
- NewspaperHow to Install Newspaper via FTP
- NewspaperHow to Install Newspaper via WordPress
Hi,
Please move this code inside the loop-single.php file like this: http://screencast.com/t/fNmRApqMuEB6
Then inside td_modul_blog.php file, comment this code lines like this: http://screencast.com/t/3HREGPlV4xhc
Then move back to the loop.single.php file, and add this code: http://pastebin.com/zR0jQPWK like this: http://screencast.com/t/FpKwJuIu
Result: http://screencast.com/t/djok2unl
You can also do this with the child-theme by copying those two files and modifying them like shown.
Thanks
Hello. I would like to move my social buttons to the top of my posts (like this: http://www.breitbart.com/Big-Government/2014/06/27/Zuckerberg-Features-Paul-Ryan-John-Boehner-Kevin-McCarthy-in-Video-to-Pressure-GOP-on-Amnesty). I use the child theme, so I need to know how to do this with the child theme so that my changes don’t get wiped out with updates to Newspaper.
I hope you can help me.
Philip
Hi,
I have tested in child theme too and seems to work fine http://screencast.com/t/MsgL5D7DMM
Thank you
Hello Emil,
I really does not work. The page has content created but upgrade to full-page displays nothing.
Is it because am using the child theme?
-
This reply was modified 12 years by
jjdiapa.
Hi,
I’m searching for a solution to this problem. The last update fixed all the issues with the breadcrumbs (better markup for seo).
Also all the breadcrumb functions are now in includes/wp_booster/td_page_generator.php (it’s still not possible to overwrite it via child theme but I will test it and if everything works I will switch the include method to locate template).
I tried some time before to implement hook/filters but gave up on that plan due to poor demand and issues with the implementation.
Radu O.
Hi,
Unfortunately not all theme components can be modified via child theme because they are part of the theme core.
Thanks for understanding
A hint and a wish for the next update if someone is using the disqus comment system:
In \themes\Newspaper\includes\wp_booster\td_module.php at line 141 you have to channge
this
//$buffy .= '<a href="' . get_comments_link($this->post->ID) . '">';
$buffy .= '<span class="td-sp td-sp-ico-comments td-fake-click" data-fake-click="' . get_comments_link($this->post->ID) . '"></span>';
$buffy .= get_comments_number($this->post->ID);
//$buffy .= '</a>';
to this
$buffy .= '<a href="#disqus_thread">';
$buffy .= '<span class="td-sp td-sp-ico-comments td-fake-click" data-fake-click="' . get_comments_link($this->post->ID) . '"></span>';
$buffy .= get_comments_number($this->post->ID);
$buffy .= '</a>';
Now the comment anchor goes right to the disqus comment form.
P.S. Unfortunely the file “td_module.php” can’t modified for a child theme (why not?), so if the theme is updated, you have to check if corresponding file was changed…
I downloaded and installed the theme & child theme.
After installing the demo data and activating the child theme, all pages look like this: http://screencast.com/t/Ww6tgvvR
They have an extra header above the logo. However, when I activate the main theme, it disappears.
livingsmarttv,
Yes it is possible to not crop and only scale images. It gets a bit tricky with this theme though because it is set to crop every image(except the featured.)
In the functions.php file, you will find somewhere around line 320:
//featured image
$td_crop_features_image = td_util::get_option('tds_' . 'crop_features_image');
if ($td_crop_features_image == '') {
add_image_size('featured-image', 700, 0, true);
} else {
add_image_size('featured-image', 700, 357, true);
}
//the small thumbnails
set_post_thumbnail_size( 100, 65, true );
add_image_size('art-thumb', 100, 65, true);
//small height, 1 col wide
add_image_size('art-wide', 326, 159, true);
//medium height 1 col wide
add_image_size('art-big-1col', 326, 235, true);
//the slides
add_image_size('art-slide-small', 326, 406, true);
add_image_size('art-slide-med', 700, 357, true);
add_image_size('art-slide-big', 1074, 483, true);
//big slider - big image
add_image_size('art-slidebig-main', 745, 483, true);
//the gallery
add_image_size('art-gal', 210, 210, true);
Notice that TagDiv has built in the ability to turn cropping on or off on the featured image based on a setting in the theme panel, but you are asking for all of them.
add_image_size('featured-image', 700, 0, true);
In the line above, it is the ‘0’ argument that tells wordpress to adjust the height based on the aspect ratio of the image after it is scaled. To analyze the code a little more, what is happening with the ‘featured-image’ image size is that if them theme is not set to crop option then the ‘featured-image’ will be scaled to 700px wide and left to be however tall the image is. If you select the crop option, it will be scaled to 700px wide and then cropped to 357px tall.
You would need to look at which block(s) you are using and then determine which module the block is using to tell what image size it is. For example, let’s say your block uses td_module_2.php.
In that file, line 13 reads: <?php echo $this->get_image('art-big-1col'); ?>
If we look above at the functions.php entry, we see: add_image_size('art-big-1col', 326, 235, true); This means that if you upload a 1280×720 image, this will resize it’s width and crop it’s height to 235 pixels. If the scaled down image height is less than 235px tall, then it will scale the height to 235px and crop the width to 326px. This is not what you want. Rather, perhaps something like this: add_image_size('art-big-1col', 326, 0, false); This will take the image and scale to 326px wide and let the height be what it will be.
If you want make these changes so that updates to the theme will not break it, then you need to copy the image size declarations out of the theme’s functions.php file and put them in your child theme’s functions.php file and change the options. You might try something like this:
//featured image
$td_crop_features_image = td_util::get_option('tds_' . 'crop_features_image');
if ($td_crop_features_image == '') {
add_image_size('featured-image', 700, 0, false);
} else {
add_image_size('featured-image', 700, 357, false
}
//the small thumbnails
set_post_thumbnail_size( 100, 0, false );
add_image_size('art-thumb', 100, 0, false);
//small height, 1 col wide
add_image_size('art-wide', 326, 0, false);
//medium height 1 col wide
add_image_size('art-big-1col', 326, 0, false);
//the slides
add_image_size('art-slide-small', 326, 0, false);
add_image_size('art-slide-med', 700, 0, false);
add_image_size('art-slide-big', 1074, 0, false);
//big slider - big image
add_image_size('art-slidebig-main', 745, 0, false);
//the gallery
add_image_size('art-gal', 210, 0, false);
By setting all the height arguments to 0, we tell WordPress to always use the full height of an image relative to the horizontal scaling and by changing ‘true’ to ‘false’ we enable ‘soft crop mode’ vs ‘hard crop mode.’ Soft crop mode ensures your images will maintain their aspect and not have any cropping. Note, the 0 setting will make it so that any image uploaded that is not 16×9 aspect will be scaled and output at it’s own aspect ratio. This can break styling, but if you only upload 16×9 images it will be fine.
You would need to either re-build your current thumbnails or upload some new images to see if this fixes your problem(or creates others)
There are lots of gotchas here, and I certainly didn’t give you a definitive answer, but perhaps what I did say will help you figure out what combination of options will solve your problem.
Good luck!
Hi,
1. Please send an email at contact@tagdiv.com with your wp-admin username and password so I can check this issue, also specify the issue or send an URL to this topic.
2. The homepage layout is store in the database, you can read more about child theme here: https://forum.tagdiv.com/child-theme-documentation/
3. You can do it by editing the block and in the “Multiple categories filter” add the category id with a minus like this: http://screencast.com/t/sSDzzIVV
Thank you
The way this theme handles css is far from straightforward(not that there’s anything wrong with that!) It loads 2 different css files (3 if you have a child theme) as well as inlining a ton of styles from the Theme Panel in the header or footer depending on if you have the td_speed_booster plugin installed.
Depending on your Layout setting in the Theme Panel it will first load one of these files: td-bootstrap.css, td-bootstrap-980-not-resp.css, td-bootstrap-980-responsive.css or td-bootstrap-1170-not-resp.css. These are all compiled by TagDiv manually, using some combination of the Less files found in /Newspaper/includes/wp_booster/external/bootstrap/bootstrap-master/less.
If you have a child theme, it’s style.css will load next.
After that, it will load the theme style.css, which is compiled by TagDiv from the Less files located in /Newspaper/less_files.
The last step is to inline all of the styles that are defined in the Theme Panel. This is handled by 3 files, td_css_buffer.php, td_css_compiler.php and td_css_generator.php which are located in /Newspaper/includes/wp_booster. The td_css_generator.php file is where the Theme Panel option rules are hard-coded, the td_css_generator gets the settings from the Theme Panel and sends them to the compiler which then pushes the compiled styles to the td_css_buffer which writes them in the <head> or to the the td_speed_booster which loads them somewhere between the closing #outer-wrap </div> and </body>.
The theme has an on-the-fly compiler that can be used with the Less files in the less_files directory, you just go into /Newspaper/includes/wp_booster/td_config.php and set the Deploy Mode to dev instead of deploy. This will replace the theme’s style.css with the output of the less compiler.
This is problematic though, because this is only for development and once you have edited your styles, you cannot use that compiler to create a new style.css file to replace the old one(it outputs errors). You have to use a different compiler to get your final css file, because you can’t use the live compiler in production. This also does not affect the bootstrap or the hard-coded Theme Panel styles.
I’m using IDEA13 with the Less plugin and I can compile the main.less into a style.css that replaces the default one just fine, however I have not been able to do the same with the td-bootstrap.css. I need to figure out what magic combination of files in the bootstrap Less files will output the same td-bootstrap.css file that ships with the theme. Perhaps one of the TagDiv guys can shed some light on how that file is compiled?
Hi, I have three things I need help with.
1. Everytime I enable the unique article feature on my blog homepage. it completely removes all of the articles from the page. http://screencast.com/t/4Y37qRZn
2. I need to know how to make my homepage layout a child theme. I dont want it to go away when i update the theme.
3. On my homepage I want to block a specific category from showing…how can i filter out categories.
Thank you for the help.
pitchforkmarketing.com
HI, if memory serves, as with most themes, it writes the new custom CSS into the header of the live page. Put some custom CSS in panel, then check the header section of a post page file to see 🙂
I use a couple of custom CSS things on our sites, only because in some versions of theme and our setup some stuff like the today’s date color setting didn’t work, and I also use Disqus but wanted some more spacing between the banner ad and start of the comments module. Was easy to just put those there than go back to the main css.
In the old days themes would often have a custom.css file to put custom code, particularly with child themes. However, “redirects” of CSS files from child theme kind of made that a fools errand for SEO. (Google doesn’t like the style redirects.)
Common method for any minor custom CSS stuff is to put into the header anyway, after call to main CSS file.
But perhaps Marius,Emil,Etc. may have better answer to that.
-
This reply was modified 12 years by
simchris.
Hi,
The module should work to be edited via Child theme. Make a try.
Thanks for the message!
Hi,
Yes, you can modify it inside the child theme.
Thank you
Emil, can I make this change using the child theme files?
Or should I do in the parent theme files?
Thank you.
It would be would helpful if we could see how users made their “colour” child themes / share colour hex settings or share the settings export.
Ever since I updated to Newspaper v3.8.4 I’ve had a notification on post and pages in my dashboard that says: “Hola! Please activate your copy of Visual Composer to receive automatic updates.”
Thought maybe I updated it incorrectly. So I deactivated the plugin, deleted it. Then I switched from my child theme to the main Newspaper theme, and reinstalled the js_composer.zip plugin.
But I’m still getting the not activated notification on posts and pages. Is there anything I can do about this?
Its working now which is strange.
I activated the child theme and all appears to be working.
As a side note is their a way to implement ” Font Awesome ” Icons both in the menus and throughtout the site?
Hi,
Yes, edit there: http://screencast.com/t/M4CWKDldrF3
you need to add you coide like $buffy .= 'your code here';
You can install the child theme, is available in Themeforest zip file, but was not tested if work with that file, but you can try it if you want.
Thanks!
Hello!
I would like to modify the author box in the sidebar. Since I have several authors on my website, I would like for each of them to show the picture and the name of the category each of them contributes to. I do not want to name of the authors to appear nor the counters of posts and comments. I suppose I have to modify the file: td_authors.php. Is it right? Which part of the code should I modify for this? Can I create a child for the theme, in order not to mess up with the code?
Thank you for you help!
Serena
SOLVED – Active Newspaper Theme and Deactivate Newspaper-child theme.
Thanks
Hi, I mean that you can replace the breadcrumb function with your breadcrumb function directly in each template that fork to be modified via Child theme.
Hi Marius, breadcrumb functions can’t be replaced with child theme, they are on includes/wp_booster/td_page_generator.php and always it’s incluyed from parent theme, not child, maybe if you include all breadcrumb function in a module (as for get_bread_crumbs) that can be replaced in child would be more useful.
-
This reply was modified 12 years by
Indeax.
Hi,
sorry for the delay, we where out for the weekend. Emil is answering emails now.
Radu O.