Kapsule Corp
Forum Replies Created
-
No AMP plugin,
Just the snippet posted earlier-I specify that this snippet worked with AIOSEO 3.x.x versions
-I also specify that it always works on other WordPress installations with YOAST or others.The snippet is basic but perfectly sufficient:
<?php if (isset($_GET['amp'])) {$amp = true;} else {$amp = false;} ?> <?php if ($amp == true) { ?> {all the tags needed by AMP} <title><?php bloginfo('name'); if(is_home() || is_front_page()) { echo ' - '; bloginfo('description'); } else { wp_title(); } ?></title> <?php } else { ?> <?php wp_head(); ?> {classic HTML version} <?php } ?>
I have the impression that your plugin removes the title tag, then I block it with the snippet you gave me but it’s too late, because the title tag has already been deleted.
All the best
- This reply was modified 3 years, 11 months ago by Kapsule Corp.
Hello,
Thx for your reply
It doesn’t work. My title balise is still deleted by your plugin in AMP.
(My title balise works in AMP when i have disable totally your plugin)I have put this code in my functions.php files :
<?php add_filter( 'aioseo_disable', 'aioseo_disable_term_output' ); function aioseo_disable_term_output( $disabled) { if (isset($_GET['amp'])) { return true; } return false; }
I did the following test, replacing title with hamburger and it works:
ex:
<title> my title </title>
is deleted when called in AMP<hamburger> my title </hamburger>
works when called in AMPAll the best
All the best
Nothing works ??
It’s an old theme : https://www.ads-software.com/themes/thememagic/
But i have remove all functions in functions.php and i have customize it in order to maintain it in 2020In my theme, i use this custom AMP (which works before with the last version)
In header.php :
<?php if (isset($_GET['amp'])) {$amp = true;} else {$amp = false;} ?> <?php if ($amp == true) { ?> <title><?php bloginfo('name'); if(is_home() || is_front_page()) { echo ' - '; bloginfo('description'); } else { wp_title(); } ?></title> Blablabla <?php } else { ?> <?php wp_head(); ?> BLablabla <?php } ?>
But 4.0.9 doesn’t work
Moreover, i have try to implement your filter (https://aioseo.com/docs/filter-to-disable-all-in-one-seo-pack/) in my functions.php in case of it’s AMP version and nothing.
–
<title>XXX</title>
is still removed in AMP version,
– All is ok in Regular HTML versionAll the best
Hello Thank you,
I did not understand that I could type text in the title and description fields in addition to the tags! I thought only tags did workVersion: 2.2.6 fix this problem ??
Forum: Themes and Templates
In reply to: [OnePress] Anchors to sections not workingVersion: 2.2.6 fix this bug
It really is a shame! I will migrate over a hundred sites to YOAST or some other solution!
Edit : If possible, I would stay on AIOSEO (I have been working with this plugin for + 8 years, and it has always been great, but I am really mad …) In addition, just before Christmas !!!
- This reply was modified 3 years, 11 months ago by Kapsule Corp.
Forum: Themes and Templates
In reply to: [Oblique] Home posts not showing anymorei hope too ??
You’re welcome
All the bestForum: Plugins
In reply to: [Gotham Block Extra Light] Plugin stops working if custom messages are usedGreat !!!
all is ok right now ? isn’t it ?
All the bestForum: Themes and Templates
In reply to: [OnePress] Anchors to sections not workingHi
Thks @derka : It works ! But it’s weird because there is like a latency before the scroll starts ?!
@longnguyen : your solution works but it’s a sticking plaster, I prefer a more lasting solution than this temporary plugin.
All the best
Forum: Plugins
In reply to: [Gotham Block Extra Light] Plugin stops working if custom messages are usedHello Taratato,
Thanks for your message,
I have try to reproduce your bug, but the plugin works on all of my websites (with custom message for any fields)
It’s strange …– Could you try on other website?
– Could you put your site in debug mode and tell me the error that is displayed?All the best
Forum: Themes and Templates
In reply to: [Oblique] Home posts not showing anymoreHey,
Glad to have been able to troubleshoot!
It’s a temporary solution (better than nothing)
It is up to the author of the theme to correct his js file
All the bestsame problem for me.
Note : it works when i’m logged inForum: Themes and Templates
In reply to: [Oblique] Home posts not showing anymoreBug is back with WordPress 5.6
In order to fix it in CSS, add this on your css file :
.grid-layout {display:block!important} #ob-grid { height: auto!important; } #ob-grid.grid-layout article.hentry { display: inline-table!important; position: relative!important; width: 347px!important; vertical-align:top!important; }