Search Results for 'amp'

Results from the Forum
Lightperfect
Participant
#0

Dear TagDiv,

I been searching the forum for this code you provide to remove Woocommerce loop shop on the default page:

add_action( ‘pre_get_posts’, ‘bbloomer_remove_products_from_shop_page’ );

function bbloomer_remove_products_from_shop_page( $q ) {

if ( ! $q->is_main_query() ) return;
if ( ! $q->is_post_type_archive() ) return;

if ( ! is_admin() && is_shop() ) {

$q->set( ‘tax_query’, array(array(
‘taxonomy’ => ‘product_cat’,
‘field’ => ‘slug’,
‘terms’ => array( ‘null’ ),
‘operator’ => ‘IN’
)));

}

remove_action( ‘pre_get_posts’, ‘bbloomer_remove_products_from_shop_page’ );

}

add_action( ‘woocommerce_no_products_found’, function(){

if(is_shop()) {
remove_action( ‘woocommerce_no_products_found’, ‘wc_no_products_found’, 10 );
}
}, 9 );

#####################

Where do I paste them to?

Please help

Calin
tagDiv Staff

Hi,

Please check our documentation for ads and make sure that you set the ads/banners like in our examples -> https://www.screencast.com/t/tXYKp6Isni -> https://forum.tagdiv.com/ads-adsense-overview/

If you have created new ads, is possible to take some time until google will approve your new Adsense code.
Waiting time for a fully activated AdSense account -> https://support.google.com/adsense/answer/76228?hl=en
Creative Delivery Lead Times on Amazon -> https://advertising.amazon.com/resources/ad-policy/en/production-timelines

Thank you!

Matjoez
tagDiv Member

Follow up, how do I deal with the following validation issues:

Validation issues
The mandatory tag ‘head > style[amp-boilerplate]’ is missing or incorrect.
1 instance
The tag ‘BODY’ appears more than once in the document.
1 instance
The parent tag of tag ‘style amp-custom’ is ‘body’, but it can only be ‘head’.
1 instance
The tag ‘noscript > style[amp-boilerplate]’ may only appear as a descendant of tag ‘head’.
1 instance
Tag or text which is only allowed inside the body section found outside of the body section.
1 instance

Thanks

Matjoez
Participant
#0

Hi,

I’m rebuilding my pages for AMP with the new mobile theme.

I’d like to remove the footer logo, as well as the ‘about us’ and ‘follow us’ text.
Please advise.

Thanks,
Matt

hadavim
Participant
composer - topic
#0

hello! after activating td-composer and amp dashboard WordPress showing just white page
not coming up

Matjoez
tagDiv Member

I just noticed I can trigger the AMP page by adding ?amp at the end of the url.
The page then loads with no images at all, which is far from what I want.
Also the font and colours are different and there’s not even a menu to navigate the website.

Matjoez
tagDiv Member

Hi,

When activating AMP classic on this page for example:
https://www.matjoez.com/about-me/
I still get no AMP result when putting it through Google AMP test page:
https://search.google.com/test/amp?id=7yY_71irKisu5gwkr7I5Rw

Even if it were to work, the classic AMP is less functional than what it was before, is it not?

The mobile theme is of no interest to me, it was fine the way it was before.
If this isn’t going to change I’ll start looking for a different theme.

This theme has gone in a direction that it appears no one has asked for and is giving many, many problems. Just look at the amount of recent support tickets regarding AMP on the forum.

How do I roll back to an earlier version of the theme?

Matt

Sohaib
tagDiv Member

One of my team members contacted with Plugin developer too. They said there is no issue with the plugin and it is perfectly compatible with AMP pages. Which is. I have tested it myself by deactivating tagDiv Mobile Theme Plugin. Please see the discussion link that my partner did with the developer. https://wordpress.org/support/topic/social-buttons-invisible-on-amp-pages/

I would really appropriate if you could provide me with some sort of code or solution that would resolve this issue.

  • This reply was modified 7 years by Sohaib.
Sohaib
Participant
#0

Why do sidebars not appear on AMP pages? There is a lot of important content in my sidebars but they just don’t appear on AMP pages.

Sohaib
tagDiv Member

But there has to be some sort of solution. I am having this issue with every social share plugin on AMP pages with tagdiv mobile theme plugin activated. But they work fine when I disable tagDiv Mobile Theme plugin. There has to be some sort of code or solution to this problem. I’m having this issue on AMP pages only.

jdovale
Participant
#0

Hi Tagdiv,
On my website imontreal.ca the theme by default adds the Post Title as the page Meta Title.
For example, on the article below the Meta Title is ‘Montreal Hotels’ same as the Post name, but I wan’t it to be something specif and different that I select.
https://www.imontreal.ca/montreal-places/montreal-hotels/

Where and how can I do that please?

Thanks, imontreal.ca

Edward
tagDiv Member

Everyone who incorrectly loaded AMP-page.

Note that the AMP standard has strict requirements for the size of the css file. No more than 50 kilobytes.

In the case of @Matjoez:

You don’t have an AMP page loaded because:

The following stylesheets are too large to be included in style[amp-custom]:
52788 B (12%): link#td-theme-css[rel=stylesheet][id=td-theme-css][href=//www-matjoez-com.exactdn.com/wp-content/themes/Newspaper/style.css?ver=9.6.1][type=text/css][media=all]
21731 B (49%): link#et_bloom-css-css[rel=stylesheet][id=et_bloom-css-css][href=//www-matjoez-com.exactdn.com/wp-content/plugins/bloom/css/style.css?ver=1.3.10][type=text/css][media=all]
Total excluded size: 74,519 bytes (16% of 450,562 total after tree shaking)

As mentioned above, deactivate untested plugins.

kuaza
Participant
#0

What this in wp-options table ? “_transient_timeout_amp_img_…..” There are too many records and sometimes the site is very slow.

shellyliaw
Participant
#0

Hi there,

1. I have loaded the travel blog templates and I seems unable to edit the templates colour and texts. I like to keep the structure (template) and just would like to edit the content. For example, I added a feature image to the page. It does not show. example 2, I could not remove the Revolution slider comes with the template.

2. Does my purchase comes with the activation code for WPBakery Page builder?

3. How should I fix this? I found this in System status
3a.”v4.9.3 – Disabled – incompatible plugin detected: amp/amp.php”
3b.” 256 – the max_input_vars should be bigger than 2000, otherwise it can cause incomplete saves in the menu panel in WordPress. To see how you can change this please check our guide here.” I have asked the hosting to increase the WP memory to 128MB.

Please help me.

Thank you in advance

Regards
Shelly

Catalin
tagDiv Staff

Hi,

I have replied in the following topic from here -> https://forum.tagdiv.com/topic/amp-thing/#post-286648 Please check what I said you there and check the results.

I look forward to helping you!

Thank you!

Catalin
tagDiv Staff

Hi all,

So you only want to use the AMP plugin and not the mobile theme? Then please be sure to use the “classic” option in the AMP settings https://www.screencast.com/t/TWR2lBgh if you want to integrate AMP with the mobile theme, please follow the guide. Check the guide from here -> https://tagdiv.com/amp-newspaper-theme/

Hope this helps!

I look forward to helping you!

Thank you!

Calin
tagDiv Staff

Hi,

Is look like there are some amp post/page on google
-> https://www.screencast.com/t/dJtsvU9ey
Please check again to be sure that you do not have a plugin conflict with untested plugins, please deactivate all non theme/tested plugins ( cache plugin, optimize plugin ), clear all cache and try again.
This is our list with tested plugins with our theme -> https://www.screencast.com/t/cmPkh9jba4sZ

Thank you!

Calin
tagDiv Staff

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!

Calin
tagDiv Staff

Hi,

The link that you provide is not our product, is just a coincides of names, please check our products -> https://demo.tagdiv.com/newspaper/

Mobile Theme: Automatic Optimization for Mobile with Newspaper Theme -> https://tagdiv.com/mobile-theme-automatic-optimization-for-mobile-newspaper-theme/
How to Make an AMP Ready Website with Newspaper Theme -> https://tagdiv.com/amp-newspaper-theme/

Thank you for your understanding!

Simion C.
tagDiv Staff

1. Using the third option here – http://prntscr.com/n5vqja will display the mobile theme only for users that are served AMP content, coming from Google search results page on mobile. Visiting the website through other means like accessing it directly in the browser will display the responsive version for all the content.

So you could exclude the pages you want from AMPhttp://prntscr.com/n5w1ar this way the mobile theme will never apply to them. Only the AMP variant will use the mobile theme.

Currently this is a limitation of the mobile theme, pages can only display mobile editor content. I can’t say at the moment if this will change or how will it change.

2. You could use that plugin if it has the options you require, we do not force users to use the mobile theme + AMP. I have seen users that use it, but I haven’t tried myself to see how it works.

3. I could add this as a request to be tested, maybe it can be solved if there is a conflict. But I can’t promise anything.

Calin
tagDiv Staff

Hi,

If you are not using mobile theme with AMP please use only the classic AMP, because the Newspaper theme do not have a template for AMP, only the mobile theme have template for AMP and the native and paired mode require theme’s templates -> https://www.screencast.com/t/vczzJyUNBE

Please make sure that you do not have a plugin conflict with untested plugins, please deactivate all non theme/tested plugins, also if you are using child theme, clear all cache and try again.

Thank you!

Nijanthan
Participant
#0

I’m getting this error and if i try deactivating the AMP plugin it again says that incomptaible plugin found-clasic editor

https://prnt.sc/n5um0x

Catalin
tagDiv Staff

Hi,

I have checked that section on aMP and your social sharing are off, sorry! Please notice that plugin has not been tested with our theme and therefore we cannot say for sure if it will work or not as expected with our theme, sorry! Unfortunately, it seems to cause some conflicts and that’s why on AMP, these icons are unavailable, sorry! If you will use only our tested plugins, you will bring good theme results. For example, use the Social Counter and check how it works. Please notice that we cannot provide support and integration for untested plugins.

Thank you!

phiphibk
Participant
#0

Hi team,

I set all fonts are Montserrat for all fields at “Theme fonts” in Theme Panel.

After setting, every thing is ok on chrome of destop, but not ok on mobile when I set (mobile+ AMP) theme(still old font – roboto).

When I change to only AMP theme, it’s ok now, font Montserrat.

Please help me fix this issue.

Thank you,

Calin
tagDiv Staff

Hi,

Unfortunately for the moment there are not many options for amp version, please check our documentation for How to Make an AMP Ready Website with Newspaper Theme -> https://tagdiv.com/amp-newspaper-theme/

Also please check our documentation for Mobile Theme: Automatic Optimization for Mobile with Newspaper Theme -> https://tagdiv.com/mobile-theme-automatic-optimization-for-mobile-newspaper-theme/

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

I think that you are referring to those 3 blocks, for those you’ll need to have set seam feature posts (that have set feature category) -> https://forum.tagdiv.com/featured-posts-2/ -> https://www.screencast.com/t/QsJ6ppY4

You’ll need to add some post in feature category -> https://forum.tagdiv.com/featured-posts-2/ if you do not have this category you can create it, just make sure that you set the category name to be
Featured

Thank you for your understanding!

Viewing 25 results - 19,251 through 19,275 (of 38,683 total)