Forum Replies Created

Viewing 15 replies - 1 through 15 (of 37 total)
  • Forum: Plugins
    In reply to: [AMP] AMP Optimizer
    Thread Starter Shobha2208

    (@shobha2208)

    Milind:

    That font code addition of &display=optional is making the fonts horrible looking and my site is losing its look and brand. Is there any way to avoid giving the option and keeping the Spinnaker and EBGaramond fonts as is?

    Shobha

    Forum: Plugins
    In reply to: [AMP] AMP Optimizer
    Thread Starter Shobha2208

    (@shobha2208)

    Milind:

    I am checking the suggestions one by one. The first suggestion was done i.e. fonts. The second suggestion is Preload AMP Runtime and they have said we can either copy-paste the script or use an AMP Optimizer (and in that they have said we have to use AMP for WordPress which will automatically optimize). If we already have that, then why is it asking me to optimize?

    I will ask you the doubts one by one.

    Shobha

    Forum: Plugins
    In reply to: [AMP] AMP Optimizer
    Thread Starter Shobha2208

    (@shobha2208)

    Done … thanks Milind.

    Forum: Plugins
    In reply to: [AMP] AMP Optimizer
    Thread Starter Shobha2208

    (@shobha2208)

    Hi Milnd:

    In my theme functions.php, I was not able to find te exact format of te code you sent, but I found this instead:

    // Enqueue Scripts.
    add_action( 'wp_enqueue_scripts', 'agency_load_scripts' );
    function agency_load_scripts() {
    
    	wp_enqueue_script( 'agency-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
    
    	wp_enqueue_style( 'dashicons' );
    
    	wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=EB+Garamond|Spinnaker', array(), CHILD_THEME_VERSION );
    
    }

    The third item above seems to refer to Google fonts. Should I make some addition to this code in PHP which is already there?

    Sorry, I am very tech-challenged!

    Regards,

    Shobha

    • This reply was modified 3 years, 2 months ago by Shobha2208.
    Forum: Plugins
    In reply to: [AMP] AMP Optimizer
    Thread Starter Shobha2208

    (@shobha2208)

    Hi Milind:

    I managed to change the second item i.e. the data-hero-candidate attribute.

    But I am not sure where the code for item 1 in your message i.e. Google Font loading should go?

    Where to look for the place to change the code as you have indicated? Which file does this code appear in?

    Regards, Shobha

    Thread Starter Shobha2208

    (@shobha2208)

    Thanks for the tip. I got the Google Site Kit.

    Regards.

    Thread Starter Shobha2208

    (@shobha2208)

    Hi Milind:

    I solved all the problems completely in one simple stroke. I saw that there was something wrong with images … so when I read some AMP articles again one article had said all images for AMP should be tagged with starting <amp-img> and end with </amp-img>

    Plus, you have to give the actual width and height of the final image but add layout=”responsive” in the image tag after stating height and width. Now if you add a div around the image and state the width % of the div the image renders perfectly.

    For example the code should be like this:

    <div id=”roundupexpert” style=”float: left; margin-right: 30px;”>
    <amp-img src=”https://solohacks-academy.com/photos/marla-tabaka-solopreneur-success.jpg&#8221; height=”100px” width=”100px” layout=”responsive” alt=”Marla Tabaka”></amp-img>
    </div>

    For mobile you can give at @media query with the image id and say it should be 100% width.

    When I did this all images sat in their correct places in both laptop and mobile – plus the Customizer issue is also sorted out.

    Wow … I was so depressed before I found this stupidly simple explanation.

    Shobha

    Wow!

    Thread Starter Shobha2208

    (@shobha2208)

    Hi Milind:

    Many new issues:

    1. Suddenly now a lot of ages and posts are returning the same AMP error that was seen on one page.

    2. Plus the main images of blog posts and pages are leaving large spaces above and below them although I am using the same code as before.

    3. Also if I try to make some images larger (100% width) for @media small screens using the i-amphtml fill content css, it enlarges all the social share buttons also. How to handle this?

    I don’t know if it will help but I found this page on AMP for Genesis … https://studiopress.github.io/genesis/developer-features/amp/

    Regards,

    Shobha

    • This reply was modified 3 years, 4 months ago by Shobha2208.
    • This reply was modified 3 years, 4 months ago by Shobha2208.
    Thread Starter Shobha2208

    (@shobha2208)

    Just filled and sent the site info form.

    Shobha

    Thread Starter Shobha2208

    (@shobha2208)

    Hi Milind:

    I did as you said and found one plugin Tabs Responsive that was a huge problem, so I deleted it as it was not even necessary for me.

    Incidentally, the other two minor issues were Genesis theme itself (very small percentage) and wp-includes (which is 24%) but I don’t know if I can touch that I think, because it’s part of Genesis? Don’t know what I should do.

    After removal of Tabs Responsive plugin, the CSS has gone down from 138% to 72%. But still that one page in the customizer gives that error. All other pages are fine.

    Shobha

    Thread Starter Shobha2208

    (@shobha2208)

    Milind:

    My pastebin files can be seen in my username Shob2208.

    I have sent a previous message with the link to my pastebin page but it seems held back for moderation due to the link in the message.

    Shobha

    Thread Starter Shobha2208

    (@shobha2208)

    Hi Milind:

    I had to paste in 4 consecutive files to avoid exceeding their limits.

    my pastes of the whole file are in:

    https://pastebin.com/u/Shob2208

    See Solopaste1, Solopaste2, Solopaste3, Solopaste4 … in that order I have included the whole file.

    Shobha

    Thread Starter Shobha2208

    (@shobha2208)

    Hi Milind:

    I tried sending your form but it refused saying it was too big. I then looked through the PHP error log but it has no word “fatal” anywhere on it.

    Only one thing: when I was trying to fill the form, there was a recommendation on the Site Health Status page of my site that for AMP “persistent object caching is not enabled”.

    Unable to send the Error Log as it is otherwise too large to post here or even in your form.

    Thread Starter Shobha2208

    (@shobha2208)

    [Mon Jul 19 00:10:01.641040 2021] [php7:notice] [pid 12383] [client 223.178.122.106:21584] WordPress database error Unknown column 'indexable_id' in 'where clause' for query SELECT * FROMwp_yoast_seo_linksWHEREindexable_id= '3152' /* From [solohacks-academy.com/wp-admin/post.php] in [/nas/content/live/contentedsolop/wp-content/plugins/wordpress-seo/lib/orm.php:286] */ made by edit_post, wp_update_post, wp_insert_post, do_action('wp_insert_post'), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\\WP\\SEO\\Integrations\\Watchers\\Indexable_Post_Watcher-

    [snipped by moderator. Please use pastebin.com or gist.github.com for large pastes like this and put a link to that here. Large pastes, especially SQL statements, tend to break the forum’s formatting.]

    Thread Starter Shobha2208

    (@shobha2208)

    Hi Milind:

    I got the PHP error log from my server guys. How do I attach the file here?

    Shobha

Viewing 15 replies - 1 through 15 (of 37 total)