- NewspapertagDiv AMP Plugin Tutorial
- ApiPractical example – How to add a new Block and Module
- NewspaperTrack Subscription Sources with Locker URL in Opt-In Builder
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperCredit System
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to use the Posts List shortcode
- NewspaperUser review system
- NewspaperCustom Fields Support
- NewspaperHow to generate Facebook App ID
- NewspaperHow to insert a block inside the content of a post
- NewspaperModal Popup
- NewspaperPayPal Setup
- NewspaperLink Tracker
- NewspaperLockers
- NewspaperGeneral Options that May Interfere with the Newspaper Theme
- NewspaperAdd Cryptocurrency Price Ticker Widget
- NewspaperPosts Loop Element
- NewspaperThe Newspaper Mobile Theme: Introduction
I am using dreampress + Newsletter Theme, and found that my site is really slow. I enabled PageSpeed mod from domain management settings but this doesn’t affect a lot. Any solutions for using varnish cache with this theme?
Thanks
Hey guys, how do I set it up so certain ads only appear on certain categories and certain posts? For example, I want ad 1 to display on ‘Funny’ category/posts but not on ‘Hot’ category/posts. Thanks in advance!
Hello,
I am still running into the problem with the homepage appearance with the window is resized. I just added an 768×90 image as an Header Ad per your example in the help files. The problem that occurs is that the image disappears when the width of the browser window is reduced. I would really like to just fix the size of the page to eliminate this issues. Also, I do not anticipate the requirement for our website to be compatible with smart phones (if this has any impact on the problem).
Thanks!
@shashank Follow the following steps:
Add this code to your functions.php file:
function time_ago( $type = 'post' ) {
$d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';
return human_time_diff($d('U'), current_time('timestamp')) . " " . __('ago');
}
Then, use this: <?php echo time_ago();?> on any theme file to show it.
Hope that helps.
Hi,
1. You can use the "Homepage - bg" template with or without the article list and full layout like this: http://screencast.com/t/LXRL8Yqn and you will get this result: http://screencast.com/t/IvREH9NKGvD4
2. It’s possible, you cloud try to add your own image and then replace it within modules/sliders.. besides wordpress default cropping sizes http://screencast.com/t/ifk8fE1HYk and we added more sizes inside the functions.php file – http://screencast.com/t/2QaaubXnqxL you can also add your own there and then use it.
Those sizes are used on modules and sliders (including the Big Slider) , you can read here about the thumbs used on modules and sliders – https://forum.tagdiv.com/modules-and-blocks/
You also have to regenerate thumbs after you add a new image size.
About the cropping modes, you can create your own images sizes and use it like I said before, hare are some more info about this:
1. http://codex.wordpress.org/Function_Reference/add_image_size
2. http://www.davidtan.org/wordpress-hard-crop-vs-soft-crop-difference-comparison-example/
Hope this helps!
Thanks
Hi Lucian,
Thanks for your reply.
The way i added the author box is – http://awesomescreenshot.com/0c53cvqxc2
As each author has his own sidebar, i have just added that to each one, only calling their specific ID.
I see what you mean, when i set a height for that as 493px for example, the whole thing works fine.
Any ideas?
Thanks a lot.
Hi guys,
I’ve finally read enough to implement custom field querying, for example on author pages. Here are two examples:
http://building.mediumutm.ca/author/luke-sawczak/
http://building.mediumutm.ca/author/larissa-ho/
Yay!
But I have two questions.
(1) The row sometimes ends early in the module…
Try the coauthor tab on Luke’s page. Everything is laid out fine. Now go to Larissa’s page and try the photographer and coauthor tabs. The first row only has one column, then the rest are fine.
It may have something to do with the tabs… if I put those modules outside of tabs, they all work fine. But the question is, if it works on one author page, what’s different about the other one?! I can’t figure it out.
(2) Do you think it would be easy or hard to put in some kind of pagination, like for example the prev-next arrows on blocks (e.g. on http://building.mediumutm.ca/) ? I don’t think I can use td_post_generator::get_pagination because linking away from this page probably wouldn’t work with tabs.
What do you think?
As to social buttons, I’m actually favoring this layout at top of posts on CNET, as an example of “nicely done” …
http://www.cnet.com/news/mozilla-expands-advertising-experiment-to-many-more-firefox-users/
Hi tagDiv,
I’ve purchased your theme. It is great.
I have few questions:
1) How can I translate my posts like this – image1 only for posts. not for menu, sidebar etc. do you recommend a plugin?
2) Is there any way to back up sidebars, menus etc. After all customization I will back up child theme somewhere. Then for example If I delete sidebars mistakenly, I can use the back up. Is child theme back up enough for whole customization steps that I’ve done before?
3) I dont want to show module2 text. Title is enough.
and how can I change the space shown on the picture?
image2
4)I have a problem with module7. It does not show the images. I picked a featured image for all posts but no result.
image3
5) Socia Icons.
a) Is it possible to change icon size as 48px? 32 is small. 64 is too big.
b) How can I make them align left? not center as default.
c)Feedly is not on the icon list. Is there any way to add it?
Good luck with your sales.
Best Regards
Ali
Hi Lucian, thank you so much for your reply, for some reason this peice of css is not working on http://GreekReporter.com. I saw it is working on your example, but not sure why it is nit working on our end. Any thoughts? Thank you again!
Default compression for images is managed by wordpress unless you’re using a plugin of some kind; not the theme; the default “quality factor” is 90 but can be increased to 95 or 100 (no compression) by adding line in functions.php to set that. But not recommended. We typically change our compression level to 60, for faster page speed.
Be aware that jpeg images with a lot of “reds” don’t compress well ever, sadly to do how lossy jpeg/mpeg compression works.
Also, if you upload an image with very low quality the quality only gets worse.
For charts such as you’re using on your sample page, it’s best to use PNG files vs jpeg and embed those directly into the page so they are not resized/resampled to new sizes except for thumbnails. Try saving it as PNG file and place in the post, and you’ll see a HUGE improvement.
Nothing with reds/orange/dark pink compress well with jpeg — it’s nothing to do with the theme 🙂
I’m sorry, you can visit the comment section for a example over here: http://goo.gl/4IO4Wf
Some of the images I’m using on post’s featured images are showing some quite nasty compression artefacts even with “Crop Featured Images” activated. Using the Lightroom feature shows that the uncompressed image is there on the server, as you would expect.
Here’s a good example of the problem.
Is there anyway around this? It’s making the articles look cheap, quite the opposite of the theme’s design!
All the best
Francis
Hello,
Installed the theme (in classic blog version) and love it but have a few questions:
a) Is it possible to make the header logo centred on the page
b) I have installed Shortn.It (http://wordpress.org/support/plugin/shortnit) and have set it up but is there a way of when clicking the twitter or Facebook at the bottom of the page to show the shortened url. At the moment it shows as (using the demo as an example) Asus Xonar U7 sound card has a built-in Headphone Amp http://seeasa.com/?p=53 via @seeasa (is there a way of changing it to show my custom url and make it Asus Xonar U7 sound card has a built-in Headphone Amp http://see.je/abcde via @seeasa. Also clicking on Facebook it only gives the blog logo and address and no information on the story being shared.
c) In the demo classic blog layout demo when you click an article it shows before and next but can’t find there that is in the theme settings to activate
d) How do I give different categories different colours?
Many Thanks in advance
Hi,
When you upload and image WordPress automatically crops that image on multiple sizes and based on that function the thumbs needed by the theme to the different modules you are using are made https://forum.tagdiv.com/modules-and-blocks/
You can read more about this here:
1. http://codex.wordpress.org/Function_Reference/add_image_size
2. http://www.davidtan.org/wordpress-hard-crop-vs-soft-crop-difference-comparison-example/
Thanks
Hi,
The best way to use only fresh posts from a category would be to chose a specific category and then use the “latest” sort order feature from block editing, this way you will have all the time the latest post from that category shown into that block.
Another option if you want them random you could use the other 2 sort order type “Random posts today” – would be the best if you add posts daily or “Random posts from last 7 days” – if you add posts once 2 or 3 days for example http://screencast.com/t/LezYULX5i
Hope this helps!
Thanks for the message
Hi
Recently, I disabled few image sizes that the theme generates by tweaking a few code on functions.php. But I would like to completely disable image generating and use the cropping function.
For example, if I upload a 1024×768 image, the theme would crop it or just crop it to fit the <div>. I really don’t like the fact that this themes generates a lot of images and to be honest, I use almost all of the blocks throughout my site. So, I couldn’t disable many sizes.
Please let me know if it is possible or not.
Cheers!
Hello team,
Hope this is possible with Newspaper.
How can I show one fresh post per category. Also if possible, randomize so the site becomes more sticky.
Right now, I have created 10 individuals block 6’s – each assigned to a specific category showing a single post. I’m sure it can be done better!
Please see this example:
http://www.wired.com/
@JBH
Hi, looks like setting proper folder permissions on your site really helped to start 🙂
But, looking at your example post page you have a LOT of work to do.
most of your errors have nothing to do with the theme; so you’re going to want to address all that stuff first. Possibly find better solutions for what you’re doing with some of those external systems. Basically you’re loading too many things from external sites, which will lower your scores; more than 5 external things is bad for speed.
For example – this is crazy:
This page has 29 external Javascript scripts. Try combining them into one. This page has 13 external stylesheets. Try combining them into one. This page has 7 external background images. Try combining them with CSS sprites.
Note you can’t do much about the stuff you’re loading from other sites/servers, but you should
1) remove “versioning” — implement the .htaccess (if running Apache) and functions.php suggestions which I’ve posted, especially for the remove of the version tags. If running child theme you may need to put in child version; not sure on that.
2) optimize javascript delivery; use the td speed booster plugin to help with theme resources; but it won’t help with external stuff you’re loading
3) you cant do anything about the image dimensions of the things being loaded off external websites
4) prefer async – you’d have to hack whatever plugin you’re using for Facebook to load that as async
5) optimize images – be sure what you upload is already as small as possible; also use something like smushit or similar; possibly use my functions.php code for setting smaller default compression size for WordPress built in function (e.g., change from default 90 to 6); then do regenerate thumbnails — boom everything 20% smaller!
7) consistent URL errors coming from your “leadpages” stuff
8) vary encoding errors – coming mostly from leadpages
9) redirect issues – whatever you’re doing with Facebook and Google generating errors
10) bad request with favicon
(etc.)
Hi,
Please make sure you add the code like this: http://screencast.com/t/dU6XKtP4
Paste the code from below into the functions file:
add_action( 'pre_get_posts', 'be_exclude_category_from_blog' );
function be_exclude_category_from_blog( $query ) {
if( $query->is_main_query() && $query->is_category() ) {
$query->set( 'cat', '-2' );
}
}
I have tested this and works fine, when viewing the featured category page the posts should show only in the slider as we have excluded the featured category http://screencast.com/t/GxyXjEG9y55
If you want other category excluded add the category id like this http://screencast.com/t/EYH2T8fAwcjG
Hope this helps!
Thanks
Hi,
Add this function into the functions.php file, like this: http://screencast.com/t/42g35dlHA
This will allow you to modify the sort order of post on category page:
function foo_modify_query_order( $query ) {
if ( $query->is_category() && $query->is_main_query() ) {
$query->set( 'orderby', 'title' );
$query->set( 'order', 'DESC' );
}
}
add_action( 'pre_get_posts', 'foo_modify_query_order' );
Change the order as you like.
For the Mega menu you have to add this line of code $atts['sort'] = 'alphabetical_order';, like this:
http://screencast.com/t/0OmLDPNkD9U
Change the sort order as you like, using the values set for sort here: http://screencast.com/t/Gv2I6uUs
Thanks
Hi tagDiv,
My Featured category ID = 2
I using bellow code in file functions.php themes (i append code end of file)
add_action( ‘pre_get_posts’, ‘be_exclude_category_from_blog’ );
function be_exclude_category_from_blog( $query ) {
if( $query->is_main_query() && $query->is_category() ) {
$query->set( ‘cat’, ‘-2’ );
}
}
but it not working exclude post in featured.
my post added 2 categories: cars and featured.
when load site, i see post at featured and cars.
best regards,
Note with twitter that once they cache a certain page, they don’t recache it once updated typically. I have this issue on couple of sites where we did some major updates and wanted to re share some pages, but both FB and twitter keep the OLD info, old photo, etc. and won’t update the NEW info, since they already have been “shared” the “old/bad” version. This may not apply to you, but keep in mind FB and Twitter have so much traffic and frequent technical issues, that sometimes there is simply nothing you can do about it as it has nothing to do with your site whatsoever.
Basically if you look at your page source and see all the properly formatted og:tags and twitter tags, description and title tags, then the issue is NOT with your site.
For example, I was sharing some stories from CNN to my G+ account, and all that was showing in the share was the photo and the page URL, no headline, and no description. Issue not with CNN, but with Google.
Likely doesn’t help, but it’s an on/off/on problem with sharing stuff to FB in particular, and sometimes G+. Twitter has been mostly stable, but they do have problems but they do at least have a developer page to SHOW what systems in their network are/are not working in realtinme.
Twitter status alert: http://status.twitter.com/
Twitter network/API status: https://dev.twitter.com/status
Facebook: Platform Live Status: https://developers.facebook.com/status/
example on Facebook Aug 1:
August 1 at 8:59am
Increased errors/latency on all Platform surfaces
Facebook is currently experiencing an issue that is affecting all API and web surfaces. Our engineers detected the issue quickly and are working to resolve it ASAP. We’ll update shortly.
-
This reply was modified 11 years by
simchris.
Hi, the theme layout would have to change for most of those social media options. You could certainly hack this theme, but in one example, you’d have to redesign the layout to have a wide layout for post top, for image and headline, then a skinny column on left for that, and then that would end up going above the story box for mobile devices.
For breaking news, you can obviously add a text box on your home page and use CSS to style a breaking news box – you have that ability right now. It would not be on ALL pages site wide, but you could easily add that to the single post template by calling a “breaking” file, and leave that empty if no breaking news, or populate when you have something earth shattering if your site actually breaks news in realtime. Simple to do. I think this might be on the list of 150+ “requests” for the theme, but not a hot topic for most, and so doubtful you’d see this anytime soon, unfortunately. But easy to add yourself within a few minutes of work.
For the social media stuff, you could create a php file with the social media elements you want, then add that in a float left div with right margin in the single post template at start of the post text, for example, or put a widget on top right of your post custom sidebar – you could hardcode by making a custom sidebar to load for the posts where the social media stuff is hard coded to query current post meta, and then still have the widget areas below that.
But don’t assume I’m being contrarian or negative in any way. Many “custom” things are pretty easy to do with existing plugins, or a couple of quick hacks to the single post template.
-
This reply was modified 11 years by
simchris.