- ApiPractical example – How to add a new Block and Module
- ApiAPI – Smart Lists – Introduction
- ApiAPI – Category top section style – Introduction
- ApiAPI – Category top section template – Introduction
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- ApiUsing the Theme API in plugins
I will like to add to this and share my setup.
1. I always start with the foundation, The hosting. I host on Digital Ocean – DO Link it is one of the best VPS hosting and quite affordable. This allows me to control what I install.
I use Nginx rather than Apache for the server since it’s fast and easy to implement http/2, which helps speed up things. Digital Ocean has a handy tool that can help you configure the best Nginx Settings for performance and security. It is available here: https://www.digitalocean.com/community/tools/nginx.
For my setup, I have Ubuntu 20.04, Latest Nginx, Mysql 8, and PHP 7.4. I also add Redis Cache since I am using AMP on my site.
Then make sure the php.ini is set to these values – https://forum.tagdiv.com/system-status-parameters-guide/.
2. WordPress
When it comes to WordPress, I make sure I have the latest version and only install the plugins I need and keep them to the basics.
This is categorized under – Theme specific plugins like Tag div composer, tagDiv Cloud Library, tagDiv Mobile Theme (since I use AMP). I don’t install the others.
Then I get one for security, for speed; I get caching and image compression, SEO, contact form, and user tracking.
I have – Yoast, Ithemes security, Google Sitekit, WP ROCKET, Imagify, Forminator, and Redis Object Cache.
The plan is to use few plugins as much as possible.
3. Theme customization – I follow most of the guides here, but I don’t enable lazyload in theme settings, and I make sure not to load google fonts. (There is a feature in tagDiv composer where you can use only system fonts).
4. WP Rocket – I enable most of the features, and since using the mobile theme, I enable mobile cache. The most important feature is where you can delay Javascript execution; it does wonders.
The rest will depend on your setup. I think the theme has improved, and it is not a challenge to achieve good lab scores.
I am waiting to see how field data will change over time.
*Pardon my English.
I have enabled mobile theme on my newspaper X theme.
When I open my site https://uttertechnology.com on mobile it shows mobile homepage not AMP mobile theme home page all others pages are working fine. If select any other category.
Hello there,
I’ve set up a Typekit Font for my website through Theme Panel. All the pages / page templates have been configurated and are using this font and the website is displaying the font properly on desktop. Nevertheless, on mobile and tablet devices, the font is replaced by a generic font: A serif font on iOS devices and a sans-serif font on android devices.
– Mobile theme has been installed and configured to use the font.
– Google font have been deactivated
I don’t know what I have to do more to be have this specific font displayed on mobile and tablet devices.
My website is the following: https://www.cineshot.be
Thanks in advance for your support.
I don’t have the option to add the logo for the mobile version
https://www.screencast.com/t/F5iNijdGlzj0
https://www.assocarenews.it/corso-di-preparazione-al-concorsi-infermieri-seguilo-gratis-su-assocarenews-it
you can see the page in desktop and in mobile, as you can see on mobile there is no content
This is the editor, https://ibb.co/y458Hmz as you can see no strange code are into it
Hello,
If you use AMP ads then will display only for AMP, if you want to display also, on the mobile theme you need to use “normal” Adsense.
Thank you!
Hello,
The mobile theme=> https://forum.tagdiv.com/the-mobile-theme/ comes with its own templates for page, post, category, etc so your current templates from the desktop theme will get converted to the mobile theme layout, the page content is made without builders in mobile editor => https://www.screencast.com/t/xbgZG8kH also, the options that are provided to edit the mobile theme version are limited (this keeps the things simple).
This is a video about Responsive Newspaper Theme, AMP & Mobile Theme, Mobile Pages & Templates -> https://www.youtube.com/watch?v=SpGkOnJeNZY
Hope this helps you!
Thank you!
Hello,
Do you use the mobile theme plugin?
Usually, this problem when the mobile theme is displaying on the desktop, then you have a cache conflict, the plugin for the cache that you are using do not recognize the mobile and desktop cache. We recommend using the WP Super Cache plugin https://forum.tagdiv.com/cache-plugin-install-and-configure/
Also, please include the link to your website.
Thank you!
Hello,
Mobile Theme Grid Settings: https://ibb.co/PtK94Fy
Latest Article Settings (i set offset): https://ibb.co/mhkxJyt
Thanks!
Hello,
If you use a plugin for cache, please clear it, also you can try to deactivate it and make a few tests and see if after the mobile page will apply.
Thank you!
Hello,
Related to Google Pagespeed, unfortunately, there is no button to hit and you’re score is high. You need to try to optimize your website and respect all conditions from that list.
If you follow the steps which are presented in this tutorial here: https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also, to increase the page speed you can check these similar topics for more solutions:
– https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/
– https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
Please give it a try and follow the steps which I presented above about page speed.
Also, check our guide from here: https://forum.tagdiv.com/how-to-make-the-site-faster/
Our tool is running only on normal pages and not for posts or categories for example.
For mobile, you can use a mobile theme plugin or mobile page, you can find more information in these articles
-> https://forum.tagdiv.com/the-mobile-theme/
-> https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages/
This is a video about Responsive Newspaper Theme, AMP & Mobile Theme, Mobile Pages & Templates -> https://www.youtube.com/watch?v=SpGkOnJeNZY
Please include the link to your website.
Thank you!
Hello,
The mobile theme plugin is recommended to be used with the AMP plugin to have the possibility to edit the AMP layout (the AMP version will use the mobile theme design).
Now, the mobile theme plugin can be used
Mobile -> the mobile theme will apply only to mobile version.
Mobile + amp -> it will apply on both and it will have the same layout.
Amp -> the mobile theme plugin layout will be used only for the amp version.
This is a video about Responsive Newspaper Theme, AMP & Mobile Theme, Mobile Pages & Templates -> https://www.youtube.com/watch?v=SpGkOnJeNZY
Also, you can change the color, fonts from Theme Panel -> Mobile theme => https://www.screencast.com/t/8a7Jkwedr
Hope this helps you!
Thank you!
Hello!
I have inspected your website and this is how it looks on mobile on categories: https://www.screencast.com/t/yr0thkRm
It is something that I was missing ? at the moment the website looks very good.
Thank you!
Hello,
For mobile theme, you need to comment on this line =>https://www.screencast.com/t/y9VynIMyI from this path wp-content/plugins/td-composer/mobile/header.php
and for AMP this line => https://www.screencast.com/t/98ognUTx from this path => wp-content/plugins/td-composer/mobile/header-amp.php
Hope this helps you!
Thank you!
Hello!
Can you let us know what iPad version are you using ? Depending on the resolution of the theme there is a thin line from Mobile theme to desktop.
Thank you!
Hello!
Can you send us a screenshot of how your mobile theme is set ? Where and how you have inserted that offset.
Thank you!
Hello,
1. Thank you for reaching out to us. Unfortunately, we cannot offer any preferential discounts for buying the Newspaper theme. I’m sorry! You can subscribe to our newsletter to hear about future discount campaigns – https://bit.ly/2WJ2Opv.
2. For the mobile version, you can use the mobile page => https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages/
This is a video about Responsive Newspaper Theme, AMP & Mobile Theme, Mobile Pages & Templates -> https://www.youtube.com/watch?v=SpGkOnJeNZY (03:11 – Mobile Templates & Pages)
Thank you so much for understanding. Have a lovely day ahead!
hello
i install the mobile theme and it works, but on pages (on posts it is ok) it shows only title, no the content on page, no html about content printed, how can i solve this problem?
Please guide me to disable from Mobile Header
Hi, also need help to find the proper class to change the color on hover and focus on front page. I want to remove it for mobile only.
Website: dagensavis.no
you might be asked for user name and password:
<em>user: admin
Password: crust.fender.rimless</em>
Where can i find this in the code?
screenshot: https://www.screencast.com/t/PWufOQmaRjBz
-
This reply was modified 5 years by
sirms. Reason: Where can i find this in the code?
No, it’s just a propper CMS for Newspaper that offer this.
I’m asking if this is something that can be added to Td composer or something. It will make it easier to update content on the page for bissy newspapers. Also it will make better support for multi html titles so you can use proper and stable font size like rem that will dynamically adapt to every screen sizes.
To have something similar you need to use vh and vw for mobile to get a smood font resizing. Unfortunately with those it will not be very smood for everyone.
Hi Team,
I have activated the amp+mobile feature on my website and added amp ad codes to the mobile ads section. As general amp ads have only one section for showing ADSENSE AUTO ADS, I have added amp ads in the mobile ads section. In this way, I am showing amp ads on the amp version of the website with no problem.
Now due to this, only amp ads are showing up, mobile ads are not showing up. If I am seeing the mobile version of the website, the normal mobile ads are not showing up for which I have set codes in the ads section of the theme panel.
Is there any way, where I choose Mobile+amp version and both versions shows their respective ads? Means mobile ad codes show mobile ads and amp codes show amp ads?
Hello,
I understand you have created a mobile page, please make sure you set it => https://www.screencast.com/t/bYroSq7x8T9, also, the header and footer are taken from the standard ones. All you have to do is edit the mobile page, and in Manager (Website Manager) you need to import or the easy way is to convert the existent footer like this => https://www.screencast.com/t/HrjOBNayd -> https://www.youtube.com/watch?v=SpGkOnJeNZY (03:11 – Mobile Templates & Pages)
Hope this helps you!
Thank you!
Hello,
I understand you have created a mobile page, please make sure you set it => https://www.screencast.com/t/bYroSq7x8T9, also, the header and footer are taken from the standard ones. All you have to do is edit the mobile page, and in Manager (Website Manager) you need to import or the easy way is to convert the existent footer like this => https://www.screencast.com/t/HrjOBNayd -> https://www.youtube.com/watch?v=SpGkOnJeNZY (03:11 – Mobile Templates & Pages)
Hope this helps you!
Thank you!
Here is the site twsillimanian.com
Debug log
[25-May-2021 03:22:13 UTC] PHP Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /home/wp_99d24c/twsillimanian.com/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 1859
[25-May-2021 03:22:13 UTC] PHP Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /home/wp_99d24c/twsillimanian.com/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 1861
[25-May-2021 03:27:32 UTC] PHP Fatal error: Uncaught Error: Call to a member function the_post() on null in /home/wp_99d24c/twsillimanian.com/wp-includes/query.php:975
Stack trace:
#0 /home/wp_99d24c/twsillimanian.com/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_category.php(17): the_post()
#1 /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php(106): include('/home/wp_99d24c...')
#2 /home/wp_99d24c/twsillimanian.com/wp-blog-header.php(19): require_once('/home/wp_99d24c...')
#3 /home/wp_99d24c/twsillimanian.com/index.php(17): require('/home/wp_99d24c...')
#4 {main}
thrown in /home/wp_99d24c/twsillimanian.com/wp-includes/query.php on line 975
[25-May-2021 03:29:33 UTC] PHP Fatal error: Uncaught Error: Call to a member function the_post() on null in /home/wp_99d24c/twsillimanian.com/wp-includes/query.php:975
Stack trace:
#0 /home/wp_99d24c/twsillimanian.com/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_category.php(17): the_post()
#1 /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php(106): include('/home/wp_99d24c...')
#2 /home/wp_99d24c/twsillimanian.com/wp-blog-header.php(19): require_once('/home/wp_99d24c...')
#3 /home/wp_99d24c/twsillimanian.com/index.php(17): require('/home/wp_99d24c...')
#4 {main}
thrown in /home/wp_99d24c/twsillimanian.com/wp-includes/query.php on line 975
[25-May-2021 03:29:40 UTC] PHP Fatal error: Uncaught Error: Call to a member function the_post() on null in /home/wp_99d24c/twsillimanian.com/wp-includes/query.php:975
Stack trace:
#0 /home/wp_99d24c/twsillimanian.com/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_category.php(17): the_post()
#1 /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php(106): include('/home/wp_99d24c...')
#2 /home/wp_99d24c/twsillimanian.com/wp-blog-header.php(19): require_once('/home/wp_99d24c...')
#3 /home/wp_99d24c/twsillimanian.com/index.php(17): require('/home/wp_99d24c...')
#4 {main}
thrown in /home/wp_99d24c/twsillimanian.com/wp-includes/query.php on line 975
[25-May-2021 03:30:07 UTC] PHP Warning: include(11078): failed to open stream: No such file or directory in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:30:07 UTC] PHP Warning: include(): Failed opening '11078' for inclusion (include_path='.:') in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:30:14 UTC] PHP Warning: include(11078): failed to open stream: No such file or directory in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:30:14 UTC] PHP Warning: include(): Failed opening '11078' for inclusion (include_path='.:') in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:30:20 UTC] PHP Warning: include(11078): failed to open stream: No such file or directory in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:30:20 UTC] PHP Warning: include(): Failed opening '11078' for inclusion (include_path='.:') in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:30:30 UTC] PHP Warning: include(11078): failed to open stream: No such file or directory in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:30:30 UTC] PHP Warning: include(): Failed opening '11078' for inclusion (include_path='.:') in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:30:42 UTC] PHP Warning: include(11078): failed to open stream: No such file or directory in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:30:42 UTC] PHP Warning: include(): Failed opening '11078' for inclusion (include_path='.:') in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:31:02 UTC] PHP Warning: include(11078): failed to open stream: No such file or directory in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:31:02 UTC] PHP Warning: include(): Failed opening '11078' for inclusion (include_path='.:') in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:31:29 UTC] PHP Warning: include(11078): failed to open stream: No such file or directory in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:31:29 UTC] PHP Warning: include(): Failed opening '11078' for inclusion (include_path='.:') in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:32:20 UTC] PHP Warning: include(11078): failed to open stream: No such file or directory in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:32:20 UTC] PHP Warning: include(): Failed opening '11078' for inclusion (include_path='.:') in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:35:34 UTC] PHP Warning: include(11078): failed to open stream: No such file or directory in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
[25-May-2021 03:35:34 UTC] PHP Warning: include(): Failed opening '11078' for inclusion (include_path='.:') in /home/wp_99d24c/twsillimanian.com/wp-includes/template-loader.php on line 106
include $template; is line 106
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;