- 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
1)The simplest way to add an H1 tag is with a text box with some content to add this tag, like this -> http://screencast.com/t/ltxuDgzb and if you want do not affect your page content you should display this, for example on the bottom of the page or everywhere you want.
Using modules, make this not look fine. I tried.
How about adding H1 to logo just for homepage ? I found this
Is one year old thead where I found, would be ok ?
https://wordpress.org/support/topic/best-way-to-add-a-h1-tag-to-the-homepage?replies=4
code looks messi here… take a look at last reply. can that code safely included in theme ?
I’m not sure why this happens, try to add another element there to see if it works, like a custom ad for example, then if that shows up, you need to check the slider settings. Try the slider on the default settings.
Thanks.
This is what I was asking for but the problem remains still.
I just wanted not to show up Author name, comment count and date on homepage and at the same time it should show up on single post pages.
With those above settings which you asked me, I landed up disabling Author name, comment count and time stamp on homepage as well as on the individual post pages. How can I disable just on the homepage?
Hello Bogdan,
the problem was with the wp tag manager plugin. I disabled this plugin and It works perfectly. Thanks a lot.
I have another question about configuration. I would like to display in a static page the post view like in this example.
http://www.screencast.com/t/hxyVPWVDX0
What block have I to choose?. Thanks in advance.
So yoast has a good writeup on getting your site up to par with AMP
https://yoast.com/wordpress-amp-part-ii/
https://yoast.com/setting-up-wordpress-for-amp-accelerated-mobile-pages/
Basically summarized here to get AMP working: http://screencast.com/t/eIGyCleh
Re: fb instant articles, once they are available to everyone, fb will have an official plugin it sounds like
http://media.fb.com/2016/03/07/instant-articles-wordpress-plugin/
Tagdiv, are you guys planning to take any steps to incorporate into the newspaper core (either AMP or instant articles) or for the time being do we take Chris S’s suggestion of keeping it silo’ed with plugins?
I actually have a book I’m working on for optimizing WordPress sites, which is super inclusive with screen shots, example code, speed test graphs, etc. — still working on it; got sidetracked by Google abandoning mod_SPDY for https, and http/2 rolling out which is successor to that on Apache servers, and PHP7 which speeds up WordPress sites by about 50% in some cases just using that …. whole lot of changes as I was getting about halfway done. So, that will be coming soon, but will be updated with all the bleeding edge stuff — and now, AMP tech as well. Never ending !
But – the ebook will have companion site with updates that the book buyers will have access to.
So, stay tuned for that! 😉
-
This reply was modified 10 years by
simchris.
Hello!
Recently we’ve been receiving some odd 404 pages on our site, and quickly realised that it’s because the link to the authors Twitter page via the Author page is broken. Rather than linking to twitter.com/username it’s just slapping the username on the end of the author page url.
You can see an example here.
Oddly, the Twitter URL for the user on the author box at the bottom of posts works correctly. See here.
Is there any way I can manually correct this for the time being?
Don’t suppose you’d be willing to switch on the amp plugin, and try the hook in functions to see if it does add it to /amp/ template via the hook provided? And see if it increments.
I’m on the front lines with this, but you’re going to get snowball of queries about this since Google will start pushing ALL its mobile traffic on compatible devices to the AMP version, and so the “counter” will not increment normally with TD themes, and some will think their audience dropped (although one can tell from the transients going way up that AMP versions being served).
I’m basically looking for working code — perhaps you’d consider adding an “tagdiv amp glue” plugin which adds the code into just the amp version via the provided amp header hook — this doesn’t need ajax since amp doesn’t use javascript.
You’re going to get a ton of queries for this — since amp is intended for news sites primarily, as are the themes — and to put it bluntly — this will actually be a superior selling point on ThemeForest to have “AMP counter support” — since almost nobody has noticed yet that their counters aren’t incrementing, but they soon will and freak out (I kind of did this the other day on the CaliforniaNewswire site when I said “hey, how come the audience dropped 70% for some of the articles …” then noticed the 9,000+ transients from the amp pages when using wp-optimize, and wen’t “oh … duh….” yeah “amp views not counted by the counter” —
Upshot – the amp view is being served as much as the mobile responsive views in the googleverse now on some of my sites, counter not incrementing. Of course, I use server side reporting (eg ‘webalizer’ etc) to know “actual” site audience views — but now the counter on all stories waaaaaaaaay down.
So – expect a bunch of newbie complaints about audience drop off once they enable AMP …. not understanding what is actually going on there.
If you can wrangle some working code on your side, for me to test – you’ll save yourself a billion support tickets for both themes as this continues to roll out !
The instructions given in tutorials is too brief (for people like me) to understand how it works. It’s mentioned it may vary from server to server and a sample code is given that is used for the theme demo server but it’s not mention where does it go, i.e. in which file. I contacted our hosting company but they said Gzip cannot be used on any shared hosting plan! I am not sure if he understood the question so am trying to verify with you if that really is the case. Thanks.
Hi Chris,
Sorry for the late reply! Accustomed to your regular replies we have omitted your tread here, it happened inadvertently, we apologize for that.
I’m not sure if this is what you need but you may find theme views counter under this td_page_views class here: http://screencast.com/t/fYnyXdWjK and this class with its update_page_views method is called, which means it increments the view counters, just on the single post pages templates: http://screencast.com/t/YtOQihCe9pw
I’m not sure how the AMP version is interpreted but you may try to add a hook like this into your theme’s functions: http://screencast.com/t/wYzX3F8b – http://pastebin.com/45icDfbD and also make sure you remove this condition: http://screencast.com/t/0EfP54gvJIKN ..do not forget about this second “{” here: http://screencast.com/t/tGvwIsek89
Give it a try and let us know how it goes!
Hope you’ll find this useful!
Thanks Chris, and again, please apologize the delay!
-
This reply was modified 10 years by
Lucian.
Hi,
I would ask you if it is possible to show more than one category on a post thumb or on a post grid or slider.
I try to explain better: I need to build a magazine website (obviously using Newspaper theme) and I need show at least 2 categories on a post image or close to the title.
For example, I post an article with a category named “Events” and another category named “London” and I want to show both Events and London.
Is it possible?
Any suggestion on how to do it?
Thanks,
Pietro
Hello,
Smartlists have a few predefined ad spots you can see here: http://screencast.com/t/6dxnTI5UF7
If you want to have a custom ad spot in one of the smartlists, you will have to hard-code it in the smartlist files. Every smartlist type has it’s own file: http://screencast.com/t/wVoP3FGfHN
For example on a smartlist 1 you can place an ad inside the file like so:
use this code: $buffy .= do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
And use it inside the smartlist 7 file: http://screencast.com/t/AGeYGuG4OsdL
It will not work everywhere though as smartlists are very complex elements.
Hope this helps.
Thank you!
Hello,
This is the answer we provided via email:
You can use do_shortcode function to display and ad under posts title. To achieve that you need to edit each file corresponding with post template used: http://screencast.com/t/arZcXGgJn and paste the indicated code under get_title() function. The result will be like here: http://screencast.com/t/ilpOPPKqWI
To get the shortcode add an ad box into a blank page then switch in backend editor copy and paste this code: http://screencast.com/t/Kcqsjk9C7xbU inside do_shortcode function.
I used custom ad 1 in this example but you can use any of the custom ad-spot, just update the number from shortcode. Ex: for custom ad 4 the shortcode will be [td_block_ad_box spot_id="custom_ad_4"]Also you can use the ad-shortcode to display ads in post contend. Just paste the shortcode in post editor where you want to display the ad: http://screencast.com/t/NKZwVCHB – http://screencast.com/t/LrLini74nH2
Thanks!
Hello,
The speces you mention are margins and padding that can be removed with css. As this modification is a substantial one and specific for every case, we cannot do it for you as you have tyo decide what goes where so I will show you hw to do it with an example and then you can apply the method for all the other blocks.
Important note: the vertical spacing cannot be removed. That is the theme width. Our theme was created using a fixed with and if this is altered, the elements will not position propoerly anymore.
All the horizontal ones can be remove though.
You will have to know a bit of css for this. You can use the browser inspector to see the margins and padding:
http://screencast.com/t/oJWhHavwl9R
Then you can create your css code to overwrite the one form the theme.
This code will remove the topo margin and bottom padding for all blocks:
.block-title{
margin-bottom:5px!important;
}
.td_block_wrap{
padding-bottom: 5px!important;
}
But the space between block posts are added on every specific module so you need to inspect them with the browser inspector and remove them for every module type.
The same goes for the header. Different header styles have different margins and padding..
I hope this helps.
Thank you!
Hi
Use this css: http://screencast.com/t/6sOZrgchP – http://screencast.com/t/3S7IAyoFrM
.td_block_14 .td_module_mx1 .td-module-thumb a:last-child:before{
background: none;
}
.td-grid-style-1 .td-module-thumb a:last-child:before{
background:none;
}
If you decide to use different grid styles and you still want to remove the dark gradient just re-add the first css code and change the number from grid style class with the one corresponding with the grid style used. For example if you’re using grid style 4 the class will be: .td-grid-style-4
Thanks!
Hello Alin,
I did what you explain here and it works fine!
Now, i need to do the same in the articles pages, counting paragraphs … can you help me please?
For example, i want to show “custom_ad_1” below the pharagraph 1 and “custom_ad_2” below the pharagraph 2.
Thanks!
Hello,
I have 1 site (www.videosupporters.com) that uses one license of Newspaper.
I created a subdomain for tests (www.testes/videosupporters.com), because I want to experiment changes in my site (for example, install a new plugin) in this subdomain (for example, see if there is no problem with the installation of that plugin) before introducing that changes in my site (www.videosupporters.com).
Is that possible? I mean, I can use the same license for a subdomain of my site?
If the answer is “Yes”, how do I do that?
Thank you.
Best regards,
Pedro Moreira
Outstanding theme in all respects, but we cant seem to find the following info in the Documentation. Attempting to access the LOGO area (top left area of Site). I can access the uploaded Logo Icon via the Theme Panel: Retina Logo/Logo Upload, but can’t access the words INSIGHTS • INTELLIGENCE • INSPIRATION ® appearing directly beneath the LOGO. Help!
Site is: http://bizcatalyst360.com/
Hello FrancescoITB,
The zoom effect has been designed to be used only for the desktop because only in this case you have the possibility to use HOVER effect. How you can check the HOVER effect on your mobile phone??? It is not possible this thing because you not have a mouse to make a hover over the image, right? As an example, you can check this code only with the inspector from your side but has no sense, though.
-> http://screencast.com/t/rF0LyIJ6fsbB
Thank you for your understanding!
Hi
To achieve that are required some modifications in theme core files.
First replace the code from td_module.php file with this one: http://pastebin.com/fzBVWPEP http://screencast.com/t/SzuHh7Oi After this you need to edit the files corresponding with the module used for each post displayed in big grid. For example big grid 1 it’s build from module mx5 and module mx6 so the file that must be edited are: td_module_mx5.php – td_module_mx6.php You only need to add the true value in this function: http://screencast.com/t/sMThJssag – http://screencast.com/t/fQ4v7PYqBZN9
Let me know how it goes.
Thanks!
Hello,
You will have to provide more details about your problem so we can understand how to help you. Please provide an example of the problem and a link to the website so we can inspect it.
Thank you!
Hi, I see in theme documentation, that we can create new sidebars from 3 different places.
1 & 2: form theme panel (it can’t be seen by Editors. It’s OK, they don’t have to edit theme settings)
3: from post settings: admins can create new one, but editors not.
It will be nice in future releases, that we can create new sidebars from Widgets menu with Editor Access.
(we have installed the Editor Menu and Widget Access: Allow Editors access to the Menus and Widgets areas of WordPress admin’s Appearance menu, whilst hiding the theme selection page.)
thanks
cstibi
Every block has a left and right padding of 24 pixels.
Just like you said, what if i make it 8 px both left & right will there be an issue. ?
if its possible how do i change the padding to that figure
Hi
To exclude a specific category from a block you have to use the category id not category name, here is an example: http://screencast.com/t/zPqCw3Sx To get the category id follow this link: http://screencast.com/t/hjxlo3EctF3r
Wen you’re using Visual Composer page-builder the sidebar set in page options will be displayed only on latest article part when page-builder + latest it’s used as a page template: http://screencast.com/t/btNJGCesn
For the part built with Visual Composer you can use a widgetized sidebar block: http://screencast.com/t/xF3RgsR4DASg
For more details about homepage setup and Visual Composer usage please check these links: https://forum.tagdiv.com/newsmag-how-to-use-visual-composer/ – https://forum.tagdiv.com/newsmag-homepage-how-to-build-and-set-it/
Thanks!
Hello,
The theme only offers the ad spots from the theme panel. Please understand that any other ad placement you want will have to be made custom and coding skills will be required. For the standard ads from the panel, there are options to hide ads on particular viewports: http://screencast.com/t/iICtxBzkK
If you want to place ads besides the website you need to add them in header.php and then use css to position them with a (fixed position) and hide them for tablet portrait and mobile using media queries.
For example:
You can use a do_shortcode function to add your banner to the site. You can use one of the custom ad spots for it: http://screencast.com/t/XPYCo8hdzn
Then you can target it with css for positioning:
.td-a-rec-id-custom_ad_1{
position:fixed!important;
left:0;
top:300px;
z-index:99999
}
You can repeat this fort the right side ad.
Hope this helps.
Thanks.