Search Results for 'amp'

Results from the Forum
Simion C.
tagDiv Staff

Hi,

Maybe there is a solution. Is the sidebar in a page or post? The composer has an option to hide specific elements, entire rows and columns as well.

So for example, in a page I set two widget sidebar elements – https://prnt.sc/olyipu Configure one with the content you want to display on desktop, and the other one for mobile.

Then hide the one that has to appear on mobile, for desktop – https://prnt.sc/olyk0q
Hide the one that has to appear on desktop, for mobile – https://prnt.sc/olykbq
This would be a solution, as there will be one sidebar for desktop and a different one for mobile.

Or maybe, if you want to use the same sidebar and only remove some elements for it on mobile, it can be done with CSS. A code can be created that will remove specific widgets from the sidebar on mobile.

Let me know.
Thanks

Simion C.
tagDiv Staff

Hi,

1. Please check these guides – https://www.wpbeginner.com/beginners-guide/how-to-add-new-users-and-authors-to-your-wordpress-blog/
https://www.wpbeginner.com/plugins/how-to-add-an-authors-photo-in-wordpress/

2. The theme provides 17 block header styles – https://demo.tagdiv.com/newspaper/block-header-1/
You can choose one in general in the theme panel – https://prnt.sc/olve2b
Also there are options per block/element in the composer – https://prnt.sc/olvera
The setting in the composer will override the setting in the theme panel. So for example if I set in the theme panel block header style 2 – https://prnt.sc/olvfhy and a different one in the composer for specific blocks/elements, the one from the composer will apply
https://prnt.sc/olvg0h

3. Those are different things, the settings that the composer has for the single image element can’t be used for images inside the post content if that is what you mean. If I misunderstand let me know.

4. Can’t say which plugin to use exactly, most membership plugins offer content restriction as far as I know. try some free plugins if possible, and check how they work and if they have the options you require – https://justlearnwp.com/most-popular-best-free-wordpress-membership-plugins/

5. That would be up to the membership plugin, if it has a content restriction it must have options to remove the restriction based on an action. If it can do it based on an user having paid the subscription, then it is possible.

The sign in/join allows users to log in the website. The theme ads a modal window as design – https://prnt.sc/olvr8t but the functionality is the same as the default WordPress login screen – https://prnt.sc/olvruf
Membership plugins may have their own login that maybe has to be used.

Thanks

Vlad S
tagDiv Staff

Hello !

As you can see everything works ok: https://www.screencast.com/t/9kLL4gsjF1C; Your page is AMP valid.

Thank you !

Calin
tagDiv Staff

Hi,

If I understand correctly you want to turn of the breadcrumbs & main menu only for specific pages, this can be done using some cloud templates for posts, categories, header, edit theme with tagDiv Composer and remove the menu and breadcrumbs, after that set the template on the posts, categories, header, pages where you do not what to have breadcrumbs and menu.
Also for page you can remove the breadcrumbs using all the page templates except the Page Builder + Page Title -> http://prntscr.com/olu6wz

Thank you!

Simion C.
tagDiv Staff

Navigating away from an AMP page or post will display the mobile theme (non-AMP). So regardless of being on the AMP version of a page, beginning to browse the website there will no AMP anymore.

The logo looks quite small for some reason, looks like it has a limited size. Try to enter this code in the mobile theme CSS section

.td-main-menu-logo amp-img img {
min-height: 100%;
}

It may take a while before changes will be seen in Google AMP. You could try this
https://developers.google.com/amp/cache/update-cache

Regarding the flag switcher it is the same for me. It does not appear in AMP. From what I can find in a topic they mentioned that for AMP it would be better to use this option
https://prnt.sc/oltxu2https://prnt.sc/oltxwk
https://wpml.org/forums/topic/language-flags-not-showing-on-amp-pages/
Or consider using the language names instead of flags.

Catalin
tagDiv Staff

Hi,

If you want to use AMP auto ads, please enter the auto ads code like this in the theme panel dedicated section – http://prntscr.com/nztn70 and there should be no problem. No need to do or add anything else, just the ad code as mentioned.
In their documentation, they mention adding a script in the head
https://amp.dev/documentation/components/amp-auto-ads but this is not required, the theme will add it automatically.
If you do not want to use AUto AMp Ads you can add the source ads inside the Mobile Theme Ad files from here -> https://www.screencast.com/t/xSXfTLpBNDB to specify where exactly you want to display your ads.

Thank you!

d_alinus2018
Participant
#0

Hello,

I have instaled the AMP on my website, but when i make one test here:
https://search.google.com/test/

I receive the message:
S-a trimis o pagină care nu este AMP
Pagina nu este AMP. Totuși, ea menționează următoarea adresă URL ca versiune AMP:
https://www.firme365.ro/?amp

If i click there i receive the next message:
Pagina AMP este validă
Pagina este eligibilă pentru funcțiile de căutare specifice paginilor AMP în rezultatele de căutare Google

Please just let me knof if it’s normaly ?

LG
Participant
#0

I’ve seen the enable/disable breadcrumbs globally in the Theme Panel, but is it possible on a page/post basis? Also, I can’t find anything about turning the main menu on/off for pages/posts.

I haven’t dabbled with the page builders much yet and have mostly been using the default Blocks Builder. Are either of these things possible, or does it require additional CSS?

Many thanks!

LG
Participant
#0

Hello,

I’m new to the Newspaper theme, so I just want to get something straight in my head. With respect to child themes, it’s clear that you don’t really recommend using them, but I just want to check if any custom code (css, etc) added via the Newspaper Theme Panel, will be deleted when the theme updates? Can someone please advise?

Many thanks!

wpsun
Participant
Add code - topic
#0

I want to add this code to a theme:

function no_self_ping( &$links ) {
$home = get_option( 'home' );
foreach ( $links as $l => $link )
if ( 0 === strpos( $link, $home ) )
unset($links[$l]);
}

add_action( 'pre_ping', 'no_self_ping' );

where should I add it?
can I add it in custom code? and do I add it to Javascript part?

sico-tv
Participant
#0

Hello. Sorry but it’s 2 in one. Hope you guys don´t mind

1 – How can i disable showing category, author and date from a home page built with Big grid shortcodes https://imgur.com/a/Ak01Vpd

2 – I’ve made a custom header for the web version (activated with AMP option only) but i can not find how to replicate it on the mobile version.

Thank you for your time

Santytabara
tagDiv Member

Hello, my problem is that it does not appear in tickets either, by mail I pass you the image

Hola, mi problema es que tampoco aparece en entradas, por mail te paso la imagen

Simion C.
tagDiv Staff

Quite usual, I don’t have that setting – https://prnt.sc/olidqo or have I seen it before. Maybe it is added by the caching plugin.
You could try to enable it, check if AMP works properly after doing so. I am not sure what it does unfortunately.

Rich Williams
tagDiv Member

Hi Vlad,

I have another question regarding Styling the List Menu… I decided to change what I had going above and stick with a more preformatted look.

I’ve been trying to style this but have a hit a problem with the hover and active states of the links. If you look at the CSS you’ll see I’ve targeted each menu item but with a different look for the active page, in this case Overview (menu-item-656).

I can adjust the CSS so that a:link and a:visited change colour, but not a:hover or a:active. Any ideas?

Here’s the CSS:

.menu-item-644,
.menu-item-643,
.menu-item-642,
.menu-item-641,
.menu-item-640,
.menu-item-639,
.menu-item-638,{
background-color: #43b3e7;
padding-top:3px;
padding-bottom:3px;
padding-left:5px;
padding-right:5px;
margin:5px;

}
.menu-item-656 {
padding-top:3px;
padding-bottom:3px;
padding-left:5px;
padding-right:5px;
margin:5px;
border-style:solid;
border-color:#999999;
border-width:1px;
}

a:link {
color: white;
}
/* visited link */
a:visited {
color: red;
}
/* mouse over link */
a:hover {
color: black;
}
/* selected link */
a:active {
color: black;
}

And here’s a screen shot:

https://prnt.sc/ofrts1

So with the above example, it hovers over in red (not black as stated in the CSS) and the active page is red (not black as stated in the CSS).

Cheers!
Rich

fatih-2
tagDiv Member

Hi

Waiting for your tests.

Yes, when I stretch the header, menu items moving to the left, so there’s an annoying gap on the right side.

The language switcher is ok with the mobile theme. But When I enable amp for the home pages, the switcher disappears. Also the logo size gets smaller when amp enabled. Please see the sreenshots..

When you are on the amp version and click the logo to go to home page, it goes to mobile version, not amp.

amp logo: https://pasteboard.co/IqdLRBp.png
amp menu: https://pasteboard.co/IqdM0eH.png

mobile logo: https://pasteboard.co/IqdManI.png
mobile menu: https://pasteboard.co/IqdMiyY.png

UPDATE: AMP Version only shows switcher when we enable LANGUAGE NAME from the switcher options, it does not show the swithcer when selected FLAGS to show them.

  • This reply was modified 7 years by fatih-2.
Simion C.
tagDiv Staff

Hi,

I tried to translate the mobile theme strings, it’s not working, I can’t say how it should be done. I will make some more tests and get back to you as soon as possible.

Regarding the menu, it depends on the available space. If there are many menu items and there isn’t enough space, they will drop on a second row. In this case you could stretch the header space to a larger width – https://prnt.sc/olh9jp

I have tested the language switcher on my end, I have set it to appear for the menu used by the mobile theme – https://prnt.sc/olhbi5https://prnt.sc/olhboo
It appears at the end of the menu on AMPhttps://prnt.sc/olhc18 it shouldn’t disappear. Does it appear in the mobile theme without AMP? Please let me know.

Thanks

mparlevliet
tagDiv Member

Yes, the ads work fine on the amp version of articles, but I’m more talking about the mobile version of the site. I have the proper auto ads code in the Analytics/JS codes section that you mention above, but auto ads don’t seem to be loading within articles. The only ads that are loading are the ones I set in the Mobile Ads section manually.

I also upgraded to 9.7.4 this weekend and noticed that if a square header ad loads, there is now a large white space underneath them on the mobile site (I am using the Mobile + Amp setting).

The square ad: https://www.vitalthrills.com/wp-content/uploads/2019/07/screenshot1.jpg

And the larger ad: https://www.vitalthrills.com/wp-content/uploads/2019/07/screenshot2.jpg

Simion C.
tagDiv Staff

Hi,

It should work like this, create/import cloud templates then apply them for each language. Don’t translate cloud templates, that may not work correctly.
So for example in English set one post template – https://prnt.sc/olgghw
And on French set a different post template – https://prnt.sc/olggy7
Each should use the templates that you set.

In those respective template you can add the elements you want, widget sidebars etc. The post templates will have to be applied manually for each post. Then the posts will use
the templates you create specially for the respective languages.

I should note that there could be some issues when using cloud templates with WPML. In some cases cloud template don’t work correctly with WPML, it is on our list for investigation at the moment.

Let me know if you have more questions.
Thanks

limez
Participant
#0

Hello, I want to know if how can I manually add div tag on each Adsense ads shown on AMP pages. I tried editing the backend at plugin > tagdiv composer > mobile > includes > shortcodes > td_block_ad_box_mob.php and added this code and it worked. However, it’s not what I really wanted.

Upon checking the source code, I found that all the amp ads are now wrapped with the same tag, which is not my main goal. I want to wrap each spot of AMP ads with a different tag. One tag for each spot on AMP ads version. I want to know how can I wrap each amp ads with different tags like this.

Simion C.
tagDiv Staff

Hi,

Thank you for choosing our theme. I will do my best to help you with your questions.

There are multiple types of blocks and grids provided by the theme. There is quite a variety of blocks designed by us that can be imported with the cloud library plugin
https://cloud.tagdiv.com/#/load/Blocks
Here is some more information about the cloud plugin – https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
Those blocks are based on the flex blocks and grids available in the composer
http://prntscr.com/oldw8m
So for example if you wish to use one you can load it directly while editing a page in the composer – http://prntscr.com/oldyjhhttp://prntscr.com/oldyto

There are also predefined blocks, grids and full grids
https://demo.tagdiv.com/newspaper/block-1/
https://demo.tagdiv.com/newspaper/big-grid-1/
https://demo.tagdiv.com/newspaper/full-big-grid-1/
Their layout is predefined and they don’t have as many settings as the flex elements.

You can add as many of them as necessary in any page. There is no limit for how many elements can be placed in a page.

Please let me know if you have more questions.
Thanks

komaradriant
tagDiv Member

At the bottom
https://www.screencast.com/t/s5RnBmYtLVq
I can’t find a clue about it on your guide
I just want to make sure the best setting for the theme
I use both of AMP and mobile theme plugin

rrystrom
tagDiv Member

I didn’t update the version.
Your system is buggy and shows random error messages.
I have mobile+amp activated but still getting dektop version on mobile from time to time and mobile version on desktop from time to time..

I will send an email with the issues

Giles
Participant
#0

Hi,

I am using the ‘Video Playlist’ on a page and would like to edit the YouTube embed code to prevent suggested video thumbnail popups when a video is paused (&ytp-pause-overlay=0).

My problem is, in TagDiv Composer, the list of YouTube embed ID’s (separated by comma) does not allow me to edit the code.

Also, when I return to the page code, again there is no <iframe> to edit.

How can I achieve this?

Thanks

Simion C.
tagDiv Staff

Hi,

Thank you for the appreciation. Where is that caching setting exactly? All I can find about it is this topic – https://github.com/ampproject/amp-wp/wiki/Post-Processor-Cache

I really can’t say what it does and if you should activate it or not, if you have this option.
We currently provide a mobile theme + AMP solution – https://tagdiv.com/amp-newspaper-theme/ which is all there is to it, install both plugins and activate them, then configure them.

Let me know if you have more questions.
Thanks

Simion C.
tagDiv Staff

Hi,

That could be done in two ways. The first one and how it should be done, is to use a cloud header template – https://cloud.tagdiv.com/#/load/Headers
Import one and modify it or create your own, these can be built with the composer so you can add as many header logos as you want – http://prntscr.com/old9vi each with their own image and URL. Here is a guide for the cloud library plugin
https://forum.tagdiv.com/tagdiv-cloud-library-plugin/

The second one would be to edit the default header template files, these are supposed to display only one logo. They can be modified in a child theme (after the 9.7.4 update) so you can copy the one you want and modify it.
For example header style 1, copy it from here – http://prntscr.com/olddbm
To here – http://prntscr.com/olde07
Then you can modify it to display another logo, something simple would work but it depends on the header used
https://forum.tagdiv.com/topic/can-i-put-an-additional-linked-image-next-to-the-header-logo/
Additional CSS may be required in order to make this display and work correctly.

Thanks

Viewing 25 results - 17,201 through 17,225 (of 38,683 total)