- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
Hi guys,
We have a special circumstance where we need to use a plugin but need your help to properly integrate it following the plugin author documentation:
We just need your help following their function example for theme TwentySeventeen to the Newsmag theme:
if ( ! function_exists( 'twentyseventeen_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author. Supports Molongui Authorship plugin.
*/
function twentyseventeen_posted_on()
{
// Integrate Molongui Authorship with TwentySeventeen by replacing twentyseventeen_posted_on() with this function
if ( function_exists( 'get_the_molongui_author_posts_link' ) )
{
$byline = get_the_molongui_author_posts_link();
}
else
{
// Get the author name; wrap it in a link.
$byline = sprintf(
_x( 'by %s', 'post author', 'twentyseventeen' ),
'<span class="author vcard">' . get_the_author() . '</span>' );
}
// Finally, let's write all of this to the page.
echo '<span class="posted-on">' . twentyseventeen_time_link() . '</span><span class="byline"> ' . $byline . '</span>';
}
endif;
Thank you so much. Your help will be greatly appreciated!
Best,
Hansel
Hi,
Our theme doesn’t provide such a capability, I also am not aware of any themes that include it. Serving the images from a sub-domain would not be a theme related task.
You could maybe try something like this example I found
– https://www.shoutmeloud.com/serve-wordpress-images-sub-domain-301-redirect.html
But test it properly on a testing domain first, not the live website.
Something else which could be done is to at least serve the images in the posts content from a different URL, from a sub-domain for example
– http://prntscr.com/n4not5 – http://prntscr.com/n4np0h
This should also be helpful.
Thanks
Hi,
Unfortunately, the WordPress it seems do not recognize the Webp image format but only if you will use such a plugin with this functionality. For more details about this case, please read the following useful guide from here -> https://wp-rocket.me/blog/webp-use-image-format-wordpress/
Also we are using now the Official AMP for WP -> https://www.screencast.com/t/kntRPz8GT please check this topic -> https://wordpress.org/support/topic/webp-with-amp-for-wp/
Thank you!
Hi Catalin,
Yes, I saw those options. But my doubt is that there are 2 sets of code that needs to be pasted.
The first one is instructed by Google to be pasted in the head tag of your AMP HTML to load relevant auto-amp-ads libraries.
And the second one is the code to be placed within the AMP HTML.
Also, I pasted the code from Google Auto Ads for the regular website at the “Header” Ad box is that the correct place?
Hi,
This problem is usually caused by some plugins that create some conflict ( untested plugins), please deactivate all non theme plugins, also if you are using child theme ( or cache plugin ), clear all cache deactivate the cache/child plugin and try again.
Please make sure that you set the amp like in our documentation
How to Make an AMP Ready Website with Newspaper Theme -> https://tagdiv.com/amp-newspaper-theme/
Mobile Theme: Automatic Optimization for Mobile with Newspaper Theme -> https://tagdiv.com/mobile-theme-automatic-optimization-for-mobile-newspaper-theme/
-> https://validator.ampproject.org/
Also please check some similar topics -> https://forum.tagdiv.com/topic/amp-problem-4/
Thank you!
Hi,
Is possible to take some time until google will index your amp links.
Please check this article:
Ask Google to recrawl your URLs -> https://support.google.com/webmasters/answer/6065812?hl=en
Thank you for your understanding!
Hi,
Depends on how you split the row, for example in a layout like below, the sidebar would be this one – http://prntscr.com/n4mfj8
Split the row so that you can use a column as sidebar. In that column you can add most elements. Let me know if you have more questions.
Thanks
Hi,
All the Google Ads for AMP sohuld have to be added in that section from here -> https://www.screencast.com/t/bg1JEdZ0
Thank you!
hi, I switched to this technology, but it doesn’t appear on amp pages. How can we do that? or are you considering future updates?
Hi,
Try again because the link is correct and should works!
It will require to load the font first, then apply it with CSS for the elements you want. This is a similar topic – https://forum.tagdiv.com/topic/change-mobile-theme-font/
More useful information here – https://developers.google.com/fonts/docs/getting_started
So load the font first, then identify the elements where you want to apply it with the browser inspector for example
– https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
Thanks.
Hi,
I need to add the Google Auto Ad code to the website and also for its AMP version.
Could you please guide me where I should paste the code given by Google? Pasting in the “Ad Header” section of the theme panel is not activating these.
Hi,
Please check our documentation for Amp -> https://tagdiv.com/amp-newspaper-theme/
Mobile Theme: Automatic Optimization for Mobile with Newspaper Theme -> https://tagdiv.com/mobile-theme-automatic-optimization-for-mobile-newspaper-theme/
If there is still a problem please provide some more details about it.
Thank you!
if I wanted to deactivate amp, would there be any problem with seo or some other penalty?
I see that many sites also have the same ads in the AMP version of the site. How do they do it? The problem is that I can’t sell advertising space and say to my client that you don’t see it in the AMP versions of the site (like the twitter mobile url).
what do you advise me to do?
But in the AMP i cannot see my header ad 728×90.
I don’t think my client is happy … what should I do?
Also i’ve set automatic share for twitter and facebook. Why twitter link (from mobile app) automatic open AMP of the articles? is here a way to prevent this?
Waiting for your kind reply. My webmaster account is continuously marking AMP error.
Hi,
Please make sure that all the settings are like in our requirements, please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
WP_MEMORY_LIMIT try to increase it at least to 256mb.
Also please check the php version to be 7-7.2
Please make sure that you do not have a plugin conflict, please deactivate all non theme plugins, also if you are using child theme or cache plugin, please deactivate them, clear all cache and try again.
I check your amp post with validator and thos pass the test -> https://validator.ampproject.org/
I checked your website and you have some 404 errors in console -> https://www.screencast.com/t/R2SMDtzU2
Please check those articles for How to Fix Error 404 Not Found on Your WordPress Site -> https://kinsta.com/blog/error-404-not-found/
How to Fix WordPress Posts Returning 404 Error -> https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-posts-returning-404-error/
How to Fix 404 Error on WordPress Posts and Pages (3 Methods) -> https://www.hostinger.com/tutorials/fix-404-error-wordpress
Thank you!
Hi,
Yes you can achieve something like that using tagDiv Composer here is an example -> https://www.screencast.com/t/QWmwYySBv3 or somethink like this -> https://www.screencast.com/t/acAeQ98A
Please check our documentation for How to Create Beautiful Homepages with Newspaper Theme -> https://tagdiv.com/how-to-create-homepages-with-newspaper-theme/
What is the Cloud Library and How You Should Use It? ->https://tagdiv.com/what-is-the-cloud-library/
In order to achieve that homepage you need to have TagDiv Composer and TagDiv Cloud Library activate.
First select no header like this -> https://www.screencast.com/t/11bZOCkhUtdd after that click on row and stretch it and check the divider -> https://www.screencast.com/t/psTxA0yP -> https://www.screencast.com/t/NfNuz8bU78jM -> https://www.screencast.com/t/xHxiMXhuAG add a new row and stretch it and set the layout of it https://www.screencast.com/t/zw8ZXuXQovO set in left column a single image -> https://www.screencast.com/t/6rW1U0DR and set an image for it -> https://www.screencast.com/t/AfrfESbD0WN -> https://www.screencast.com/t/4NZuM85Cqg -> https://www.screencast.com/t/3Ch2H5ZCM8 after that set in the right column the header logo, header menu, social and the header search -> https://www.screencast.com/t/DsJhE4R1t now you need to set each element to be display inline and the search and social align theme to right -> https://www.screencast.com/t/812LUkv5Lai -> https://www.screencast.com/t/tNrmvVkW2
Hope this will help you!
Thanks!
Hi,
Maybe that share plugin does not work with AMP, that would explain it. You could check with the plugin developers about this. If that plugin does not support AMP there would be nothing we can do about it.
Thanks
Hi,
Please notice that the divider and the ROW functionality are working fine. I have made some tests with good results. You have to use two different Rows and be careful not to put items in the same row, like Inner ROW, for example, because in that case, being a single row with two inners row, when you make some changes in the row, all of these will be changed. -> https://www.screencast.com/t/4jrxdfjJ
Thank you!
Hi,
1. That is true, the mobile theme doesn’t have many settings at the moment. There will be more added in the future. However we have to be careful what we add in it, to maintain it’s speed. Not having may settings and using mostly predefined templates is what makes it fast.
2. What exactly is not functional? Currently the solution we provide is not a dedicated AMP plugin, now you can use the official AMP plugin and the mobile theme
– https://tagdiv.com/amp-newspaper-theme/
From what I can see you are using this solution at the moment, seems to be valid
– http://prntscr.com/n4ic9l
3. I checked with a mac using Safari version 12.0.2 (14606.3.4), from what I can see everything looks alright, same as on Chrome for example. Let me know if I should check anywhere specific.
4. The only review system the theme has is like this – https://forum.tagdiv.com/reviews-2/
I am not aware of any plans to add more review or rating capabilities in the theme. Maybe you could use a plugin for this.
5. I don’y quite understand what you mean. The theme uses thumbnails, also category tags. Some more details would be helpful.
6. If there weren’t this many font settings or only for grouped elements, users would request more specific settings. Almost anything has font settings in the theme panel (these are general) and in the tagDiv composer (for specific items).
However something like what you are describing is in development. Not sure how exactly it will be at the moment, but it will be easier to manage the fonts.
7. I made a quick test on my side with a cloud search template, the search works for me same as with the default search template. What exactly is happening in your case?
8. A cloud post smart list template can be used for posts that consist of a smart list. This template will appear anywhere the other post templates appear. If I misunderstand, some more details would be helpful.
9. I can add this on our suggestion list, I don’t believe there were similar request before. There are plugins that could be used for this.
10. How are you testing this? For me the version of this post page
– http://localhost/wp_s2/gadgets/how-to-drive-growth-through-customer-support/
Looks like this – http://prntscr.com/n4isd0
Let me know.
Thanks
Hi Whaletb,
Unfortunately, the Newsmag does not support the Mobile theme, sorry! The AMP sohuld works as expected if it was correctly installed on your website. Please enable this plugin and provide your website URL so we can check how it works. Also, if you are using some untested plugins, please remove all of them, clear all the caches, purge CDN files and check the results.
Thank you!
Hi,
Using the new version of mobile theme + AMP you’ll have the same design for AMP posts/pages link on mobile.
1. Please make sure that you set the amp like in our documentation for How to Make an AMP Ready Website with Newspaper Theme -> https://tagdiv.com/amp-newspaper-theme/
2. If you want to turn of some AMP post/page you need to use the AMP option from mobile theme -> https://www.screencast.com/t/K71l6QDBvl and you can turn of the AMP for post pages ( for those will be show the mobile version ).
3. The mobile theme is a plugin that provide you a better speed then responsive version of theme, but in order to achieve that speed you’ll need to create a new content for pages because in the most of cases those were made with builders ( tagDiv Composer, WPBakery ) and you need to use only the mobile editor ( you need to set the content for pages in mobile editor and this content will be display on mobile theme)-> https://www.screencast.com/t/ebUIzt4se
Thank you!
I set AMP like in documentation and I don’t have any custom CSS.
This is note the solution of my problem.
Regards,
Julien
Hi,
Please make sure that you set the AMP like in our documentation -> https://tagdiv.com/amp-newspaper-theme/
Also if you have some custom css set in Newspaper>Theme panel>Mobile theme>Custom css please remove it, clear all cache and try again with validator.
Thank you!
Hi,
All that is required is to install the mobile theme and AMP plugins
– https://tagdiv.com/amp-newspaper-theme/
Those options should appear in the theme panel after doing this
– http://prntscr.com/n4hr4f
If they still do not, maybe the theme hasn’t been updated properly. Try to reinstall it by FTP, this is the most reliable and recommended method
– https://tagdiv.com/how-to-install-newspaper-theme/
Or maybe a plugin is the cause. Try deactivating all the plugins except theme plugins and AMP. Check if this fixes the problem.
In case the problem remains, we could take a look. Send us an email at contact@tagdiv.com and provide admin login. Include a link to this topic in the email. Let us know.
Thanks