Ashutosh Sharma
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sticky HeaderSee the theme documentation to disable sticky header.
Forum: Fixing WordPress
In reply to: Issue with PHP8Assuming that the
$values
variable will be always empty for the newer posts, and may have a value for older ones, you just need to echo the value:<?php $values = get_post_custom_values('video'); if (isset($values[0])) { echo $values[0]; } ?>
Forum: Fixing WordPress
In reply to: Why is my “more block” missing?Are you editing posts or pages?
The More Block works only for Posts, (not Pages).
More Block DocumentationForum: Fixing WordPress
In reply to: Changing appearance of images using CSSThat’s because your images have different dimensions. You can edit and make them all equal or close to equal. Or if you don’t want to do that, add this CSS:
#gallery-8 img { aspect-ratio: 4/3; }
The downside is that the images will be a little stretched and the last one (which has more height), will be squished:
Another variant could be:
#gallery-8 img { aspect-ratio: 4/3; object-fit: contain !important; }
And now the images will be adjusted to fit within the defined aspect ratio, and have empty spaces around it:
Forum: Developing with WordPress
In reply to: Mobile page speed score is 20 points lower than DesktopJust wonder why cloudflare provides near 0ms lag in image loading for desktop while mobile loading is way slow.
That’s because Google throttles mobile CPU, and mobile network. You can read about it here: https://developers.google.com/speed/docs/insights/v5/about#what-device-and-network-conditions-does-lighthouse-use-to-simulate-a-page-load
Forum: Everything else WordPress
In reply to: Messed Up Formatting and ImagesGo to your WP Dashboard ? Appearance ? Customize, then make any change there, and undo the change, then click on the “Publish” button. It fixes such issues sometimes.
Forum: Everything else WordPress
In reply to: hosting company lost my website@canadianrancher you need to restore your files to get the same theme, and plugins, then manually copy the content from Wayback Machine archive. And reconfigure all the plugins, and theme options to match what you had previously.
Forum: Developing with WordPress
In reply to: Mobile page speed score is 20 points lower than DesktopIf images are lazy loaded, it is WordPress default setting.
You then need to disable the core functionality.
When it comes to DOM structure, I do admit it is heavy, but desktop performance is unaffected.
What works well on a desktop may not work with the same efficiency on a mobile, which could have a slower network, and less powerful CPU/GPU.
Google PSI also throttles network and CPU, which you can see by hovering over “Emulated…” and “Slow 4G throttling”.
Mobile pages have much simpler DOM structure, yet, I have much lower score on performance.
DOM structure isn’t limited to what you see, it is what you have on the page. And according to Google PSI, you have “3,459 elements”. You are using 2 different layouts for mobile and desktop, and hiding either version doesn’t remove those DOM elements, it just hides it. Browsers still need to go through the entire DOM for rendering, processing, styling, etc.
Forum: Fixing WordPress
In reply to: Changing appearance of images using CSSYou need to edit the gallery block to use 3 columns, and try using medium image size first, if that doesn’t work, then use large and so on.
Forum: Fixing WordPress
In reply to: Cannot Select Text Visual EditorText selection here is working in Chromium and Chrome Dev for me (on Linux), not sure why it isn’t working for you. But as far as I can tell, this has nothing to do with cookies. And even your screenshot (https://ibb.co/BKMWvHC) shows that the mentioned cookie belongs to Google Analytics, not WP.
You can try creating a new user profile for testing to rule out any other Chrome preference which could be causing issues here.
Forum: Fixing WordPress
In reply to: Changing appearance of images using CSS@androidandreas yeah, it is supposed to say “Additional CSS”, my bad.
Forum: Fixing WordPress
In reply to: Cross origin attribute? Perhaps?It looks fine. You should enable debugging mode to see error messages. Can’t help you any further without seeing a proper error.
Forum: Fixing WordPress
In reply to: Slow websiteAre you talking about preloader taking a long time to hide? If so, then it is happening because you have lazy loaded the JS file which is responsible to hide it:
Preloader hides after file is downloaded, executed, and 1 second has passed (delay defined in JS). Exclude it from lazy loading, and remove/fix these 404 and 401 requests as well:
Forum: Fixing WordPress
In reply to: WP_Sitemaps_Users’ not foundLooks like some files are missing. You should reinstall the core and see if that fixes the problem.
Forum: Fixing WordPress
In reply to: Attribute ProblemThen maybe you have a plugin which could be modifying it. Have you tried disabling other plugins and see if that fixes the problem? Also, consider creating a support thread with WooCommerce devs and community.