bilal704
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] ‘amp-custom’ is missing in the class-amp-gallery-embed.phpHi @westonruter,
I am also facing the same issue after updating the the plugin from version 0.72 to 1.0.2. Tried activating the compatibility plugin but no luck. Hence reverted back to the version 0.72. I am using “amp_post_template_file” hook to load amp page templates.
Thanks,
Bilal AhmedHi @westonruter,
Thanks for your response. Appreciated!
I could have been clear with the above message. Sorry about that. Reiterating it below..
1. I want to enable AMP on both the Offers and Pages and so I modified your code a bit.
add_filter( 'amp_post_status_default_enabled', function( $default, $post ) { if ( 'page' === get_post_type( $post ) || 'offer' === get_post_type( $post ) ) { $default = true; } else { $default = false; } return $default; }, 10, 2 );2. Now, with this code, the AMP is enabled as required, but the website takes the AMP plugin’s default template. What I would like is to have my own WordPress built theme to be applied post plugin activation. Could you please help here?
3. Now, as I said I only need AMP for Pages and Offers post type and also need my WordPress theme to be applied. So, if I add the below code with the above (code written in #1) then the AMP renders with my theme, but converts the entire site (all the post types) to the AMP version which is again not needed.
add_theme_support( 'amp', array( 'paired' => true, 'templates_supported' => array( 'is_singular' => true, ), ) );3. In the Admin Dashboard there should be an option in the publish metabox to enable and disable amp and inside Pages and inside Offers (which works fine when using the code written in #1).
If you could please get back to me?
Thanks,
BilalHi,
I just checked using php code and I had selected “Single Opt In” option in the settings. But when I use “Double Opt In” option it works fine after the email address is confirmed by the user. So that means it checks for status as “Confirmed” and not “Single Opt In”
Thanks,
BilalForum: Fixing WordPress
In reply to: Change /wp-admin on website using https@peninah thanks for the suggestion. iThemes security plugin solved my problem. Earlier it was not working after the release of 5.2 version it started to work.
Thanks,
BilalForum: Fixing WordPress
In reply to: Change /wp-admin on website using httpsHey Peninah,
I posted in plugins forum too. I used this plugin protect-wp-admin. Plugin is not helping me. So is there any alternative plugin or a code that I can use with https protocol.
Thanks,
Bilal