- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- ApiAPI – Single Template – Introduction
- ApiPractical example – How to add a new Block and Module
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- ApiUsing the Theme API in plugins
I just upgraded to the new version of Newspaper that features the Say What template. Say What is nearly perfect for my purposes and I’ve found tweaking most things to my needs very easy.
However, I’m running into a BIG problem. On my existing sites I need the comment count box to display because it generates a lot of traffic. Readers what to see what other people are saying.
Previous Newspaper: I had it configured with Module 11 to display content on the main, category and tag pages. Under Block Settings I have Show Comment Count, Show Date and Author all enabled. This resulted in comment count displaying on post lists and in widget sidebars.
Say What Newspaper: Under Block Settings I have the same areas enabled, but comments do not appear in either post lists or sidebars when configured in the Say What VC template.
I am also running into a problem with [tagDiv] blocks showing the comment count icon as before when added to a widget sidebar in VC. I have [tagdiv] Block 21 activated in both the old version and Say What. Say What doesn’t show comment. regular widget blocks do.
I need a solution that displays comment counts when they are enabled. Is there a specific config that needs to be activated for comment counts to appear? If not is there a code hook that can activate it in custom code?
Below are examples of before and after (Say What) sidebar blocks.


Below are examples of before and after (Sawy What) post lists.


Hello nfranc01,
Activate Newspaper theme then in WordPress dashboard, go to theme panel and install the demo.
Refer – http://prntscr.com/clydpw
You can also create new homepage by creating a new page.
Steps-
Create new page
Input title and choose backend editor. refer- http://prntscr.com/clyfdl
now, scroll down and choose add template. refer- http://prntscr.com/clyezp
Choose desired homepage. refer- http://prntscr.com/clyg80
That’s it, now you have all modules here for further modifications – http://prntscr.com/clygix
Hi there,
I’m fairly new to this theme so I’m just learning the ins and outs. Is there a way to duplicate the format of the Say What theme template’s homepage? I’m having a difficult time figuring out which modules are the same ones and I’ve spent a significant amount of time on this already.
Thanks
Hello, thanks a lot for your solutions.
I have one more question, I try to add pages on my top bar template, you know in Newspaper you have some pages like : Blog, forum etc on the top bar. I don’t found where I can do that.
I have a trouble with the connexion on the top bar. I create a fake account and try to connect, but it’s bugged, the account not connect and don’t go to the dashboard.
Thanks in advance !
Hi, I just upgraded from Newspaper v6.6 to v7.4. Everything was working fine before the upgrade but after it finished the home page was replaced by a message which said…
Fatal error: Call to undefined function vc_shortcode_custom_css_has_property() in /var/sites/f/frockmagazine.com/public_html/wp-content/themes/Newspaper/vc_templates/vc_row.php on line 55
I thought I could comment that line out to see if that would fix the problem but then a different error appeared…
Fatal error: Call to undefined function vc_shortcode_custom_css_has_property() in /var/sites/f/frockmagazine.com/public_html/wp-content/themes/Newspaper/vc_templates/vc_column.php on line 41
…so I reinstated our last good backup to get the site back on air.
Any ideas?
Thanks, Katie
Hi Stangerson,
First of all, I will thank you for reaching us. I have inspected your website and I saw that you are using the pagebuilder+latest articles+pagination as page template. If you want to get rid of the Latest Articles module you will have to switch the page template to Default, like this -> http://screencast.com/t/kwr0eLMoppS For more information about this, please check here -> https://forum.tagdiv.com/page-templates-2/
The category page does not use Blocks but only Modules. For more information about how you can customize your category pages, please check here -> https://forum.tagdiv.com/category-templates/
If is not what you mean, please provide more details.
Thanks.
@nairolf
I don’t able to understand what you need to convey. You reply is completely ir-relevant to the topic. If you don’t know anything then atleast don’t spam….
Google Structural Data Tool (Live Tool) is not able to get the hentry “Updated” from the post template, which used to be in the website pages and asking to include the same in all posts.
Hi
Unfortunately the theme don’t have an option to set a different banner ad for categories or pages. To achieve a similar result you will need some customization in theme’s code. Please check these links where I’ve provided similar solutions: https://forum.tagdiv.com/topic/custom-ads-to-header-ads-section/ – https://forum.tagdiv.com/topic/different-ad-tags-for-the-category-templates-vs-the-homepage/
Hope this helps!
Thanks!
Ok I see… Under the setting “Pagination Style” I have selected the option “normal pagination”, so at the bottom of the home page I have the links “1 2 3″… etc. that send the visitor to /page/2/ or /page/3/ and so on.
Would it be possible to append the query string “?nocache=1” directly after those links in the template? Or is that also completely managed by WordPress? Sorry if the question seems repetitive, it’s just that this is the solution Godaddy gave me…
Hello VittorioC93,
As for the image sizes, there is no ideal image size I can recommend. You will have to assess the containers and thumbs you plan on using on your site and the post templates as well. If you use post templates that use the full-size images like http://demo.tagdiv.com/newspaper/td-post-2015-awards-all-of-the-best-and-worst-moments-from-the-show/ then a full-width image is required. If not, you need to inspect every element, in particular on the homepage. If you use big grids, your images must be at least the size of the big grid container. Otherwise, they will not fit inside and not display correctly. Here is a list of all thumbs used in our theme:
https://forum.tagdiv.com/theme-thumbs/ also -> https://forum.tagdiv.com/thumbnails-vs-featured-image-size/
Hope this helps!
Thanks for your understanding!
Hello,
I can’t find a template of the code needed to display the menu from page “MegaMenu from Pages”.
CF : https://forum.tagdiv.com/wp-content/uploads/2014/10/page-menu.png
Can you let me know please.
Thx
My website is hosted in Godaddy and they have their own server cache. The problem I am having is that when I go to the second page (/page/2/ or /page/3/) the content is from many days ago. The solution, according to Godaddy, is to add the parameter ?nocache=1 at the end of the page (for example /page/2/?nocache=1).
My question is, how could I add that query string only to the pagination of the template? I wouldn’t like all the pages to have that query string, only the pages that contain /page/ in the homepage and the different categories. Is this even possible? Thank you.
ok, but could you let me know:
Do you have such pieces of codes in php files?
ââ-/themes/Newspaper/functions.phpââ-
add_filter(âloop_shop_per_pageâ, create_function(â$colsâ, âreturn 4;â));
âââ/themes/Newspaper/includes/td_templates_builder.phpâââ
JTNDaDQlMjBjbGFzcyUzRCUyMmJsb2NrLXRpdGxlJTIyJTNFJTNDc3BhbiUzRVNlbmQlMjB1cyUyMGElMjBtZXNzYWdlJTIxJTNDJTJGc3BhbiUzRSUzQyUyRmg0JTNF
If yes – it seems it was a wrong detection of a plugin.
That all I want to know -confirmation from your side – YES or NO ( is it normal fragment part of code ) ?
That is the question.
yesterday I installed newspaper, and now I would like instal a demo with forum page installed.
What are the alternatives?
Hi,
I understand that the index.php (Main Page) and single.php (Blog Posts) share the same template settings. However, is there a way for me to show the sidebar only on my blog posts without having to go into each blog post manually to add a sidebar back in? I have close to 2500 posts.
Thanks!
I’ve got this warning dsureing the tempalte scan – http://screencast.com/t/g58Erdo8Z
“Virus suspected: The daily antivirus scan of your blog suggests alarm.”
please confirm – is it ok ?
——-/themes/Newspaper/functions.php——-
add_filter(‘loop_shop_per_page’, create_function(‘$cols’, ‘return 4;’));
———/themes/Newspaper/includes/td_templates_builder.php———
JTNDaDQlMjBjbGFzcyUzRCUyMmJsb2NrLXRpdGxlJTIyJTNFJTNDc3BhbiUzRVNlbmQlMjB1cyUyMGElMjBtZXNzYWdlJTIxJTNDJTJGc3BhbiUzRSUzQyUyRmg0JTNF
Hi
On the indicated demo use use page-builder+latest article as page template. Please check this links for more details about pages templates and how to use Visual Composer: https://forum.tagdiv.com/page-templates-2/ – https://forum.tagdiv.com/homepage-how-to-build-and-set-it/ – https://forum.tagdiv.com/how-to-use-visual-composer/
You can also import the demo on a test install to get more familiar with theme’s features and have an overall view about how they work.
Let us know if you need further assistance on this.
Thanks!
There are 2 options for Template:
1- use static page – screenshot – http://screencast.com/t/u4VZne0oJP
2- use last post – screenshot – http://screencast.com/t/sOMqgimW0r6y
Could you advise hot to organize such layout http://demo.tagdiv.com/newspaper_medicine/ ?
Can’t find such info about main page here – https://forum.tagdiv.com/newspaper-theme-documentation/ đ
Hi
I’ve checked your site again and seems that the plugin use archive template: http://screencast.com/t/fb4GCbImEq You can remove the sidebar from archive pages from theme panel > template settings: http://screencast.com/t/iRFiW7CrES
Hope this helps!
Thanks!
Hi
Each post template is built from two files: single-template-x.php and loop-single-x.php. Depending by post template each file have its own role, but as an overall view the single files are the main, they start the single pages and they also end the page, I mean the html for posts. Loop files in most cases prepare the article’s content, the one added in wordpress editor.
Hope this helps!
Thanks!
The plugin doesn’t use a shortcode to generate the page. The page is generated by the plugin, but for some reason I can’t figure out which template it’s using to pull from when using pagebuilder as set up in the theme.
Hello, I’d like you to help me with 4 questions:
1) In the header menu, the live search works well. But is there a way to implement it in another search boxes, for example, in the sidebar? The default WordPress search doesn’t seem to have this feature.
1.1) Due to the server and thousand of posts, the search takes a while to process the live results. Is there a way to insert a loading gif to show the user the content is beeing loaded? That would be just VERY helpful.
2) How do I enable smart snap only in the desktop version? I seems this feature doesn’t work well with mobile browsers, so it is going to be way better do disable it only in the mobile version (and let it sticky).
3) Some days ago, you answered me about changing the thumbnail sizes. But I couldn’t make it, can you please explain better where should I update/create the thumbnail code? I tried in functions.php but it didn’t work..
4) At last, could you give me directions to change the way “latest articles” are shown in the homage? The default template is Pagebuilder + latest articles + pagination, and I like that, but I would like to change the template, and display posts as a list.
Thank you in advance!
Hi there,
We want to use the Newspaper Mobile Theme on Mobile only. Currently, we have a different theme in use for Desktop. The Mobile Theme instructions specify that the homepage template appears only if a static page is used. However, we can’t have a static page set to display in our reading settings, because that conflicts with our desktop theme. Is there another way to have the Mobile Theme display its Homepage Template, without setting a static page to display in the Reading settings?
Thanks!
How can I insert a php page into a block?
I know I have an option of appending php code in function.php and inserting it into text blocks via shortcodes.
I am trying to drop the whole output of the php page into a section wo modifying the template on the back end. Is that possible?
Thanks
Hello Samet,
1)I have inspected your website and I did not saw any post template style 7.
2)In order to bring the sidebar for your post pages, please ensure that this feature is enabled from the theme panel, like this -> http://screencast.com/t/yOT12JFK3cHP
3)For more information about Meta Info for Modules/Blocks and Post pages, please check here -> http://screencast.com/t/Osg2EZSteLXr and here -> http://screencast.com/t/TorhJEC4TXHz
Please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can further inspect your setup page.
Thanks.