Mahangu Weerasinghe
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Site not updatingI am unable to load a media also. the error message is βFailed to write file to disk.β
Given this error message, something could be mis-configured on your hosting account.
Since your web host Hostinger has access to your WordPress installation, including the database and all the files, I would see if they can help you safely upgrade WordPress.
You can reach their support at – https://www.hostinger.com/contacts
Forum: Fixing WordPress
In reply to: Slow loading for wp adminThanks for sharing the logs. That error seems to be similar to the one experienced by this previous forum poster, so maybe you would like to try the fix that seemed to work for them.
Forum: Fixing WordPress
In reply to: Featured Images Appear BlurryI see! Thanks for clarifying. It looks like you are using Optimole to process your images. Let’s look at one example:
For this post – https://knewsgr.com/2024/07/01/review-aria-glow-the-asian-and-korean-pop-culture-music-event/
- The front page thumbnail is – https://ml5uhqjiebyr.i.optimole.com/w:400/h:200/q:mauto/rt:fill/g:ce/ig:avif/https://knewsgr.com/wp-content/uploads/2024/06/IMG_0682.jpg
- The image on the post is – https://ml5uhqjiebyr.i.optimole.com/w:816/h:458/q:mauto/ig:avif/https://knewsgr.com/wp-content/uploads/2024/06/IMG_0682.jpg
- If you look at the URLs above, you can see that your front-page thumbnail is being rendered at
400x200pixels, and the image on your post is being rendered at816x458pixels.
Thus, it looks like Optimole is doing some cropping and resizing for you here, and if you noticed your front page images becoming blurry recently, the support forum for the Optimole WordPress plugin may be able to help.
Forum: Developing with WordPress
In reply to: Redirect to All Custom post types@foysalabu Happy to help! Did you have a further question or are you all set here for now?
I see. Thank you for clarifying. The issue could be the
<style></style>tags not being picked up correctly when pasted into the editor. You can try adding the CSS to your site via your theme’sCustom CSSscreen in the Customizer. If your theme doesn’t have aCustom CSSoption, you can try using the Simple Custom CSS and JS plugin.I used the said plugin and added this Custom CSS snippet and activated it on the site:
.textimageblockwrap {
display: flex;
flex-wrap: wrap;
margin-bottom: 20px;
}
.textimageblockwrap > div {
flex: 1 1 50%;
padding: 1rem;
box-sizing: border-box;
}
.img-container {
display: flex;
align-items: center;
justify-content: center;
}
.img-container img {
max-width: 100%;
height: auto;
max-height: 350px;
}I then added the following HTML in the editor:
<div class="textimageblockwrap">
<div>
<h2>Feedback vs Zero feedback</h2>
Canor Virtus M1 enables instant switching between the connection with the feedback or with zero global feedback. This has an influence on the overall performance of the power amplifier which results in a different listening experience.
</div>
<div class="img-container"><img src="https://www.canor-audio.com/thumbs/460x340-drop-90/42-3985-feedback.jpg" alt="Feedback vs Zero feedback" /></div>
</div>
<div class="textimageblockwrap">
<div class="img-container"><img src="https://www.canor-audio.com/thumbs/460x340-drop-90/42-3985-feedback.jpg" alt="Feedback vs Zero feedback" /></div>
<div>
<h2>Feedback vs Zero feedback</h2>
Canor Virtus M1 enables instant switching between the connection with the feedback or with zero global feedback. This has an influence on the overall performance of the power amplifier which results in a different listening experience.
</div>
</div>This seemed to work locally for me (see screenshot): https://d.pr/i/XwLvNy
If you’d rather not add separate Custom CSS to your site, you can also define the styles inline, though this may become cumbersome if you ever want to change the styles across all your products:
<div style="display: flex; flex-wrap: wrap; margin-bottom: 20px;">
<div style="flex: 1 1 50%; padding: 1rem; box-sizing: border-box;">
<h2>Feedback vs Zero feedback</h2>
<p>Canor Virtus M1 enables instant switching between the connection with the feedback or with zero global feedback. This has an influence on the overall performance of the power amplifier which results in a different listening experience.</p>
</div>
<div style="flex: 1 1 50%; padding: 1rem; box-sizing: border-box; display: flex; align-items: center; justify-content: center;">
<img src="https://www.canor-audio.com/thumbs/460x340-drop-90/42-3985-feedback.jpg" alt="Feedback vs Zero feedback" style="max-width: 100%; height: auto; max-height: 350px;">
</div>
</div>
<div style="display: flex; flex-wrap: wrap; margin-bottom: 20px;">
<div style="flex: 1 1 50%; padding: 1rem; box-sizing: border-box; display: flex; align-items: center; justify-content: center;">
<img src="https://www.canor-audio.com/thumbs/460x340-drop-90/42-3985-feedback.jpg" alt="Feedback vs Zero feedback" style="max-width: 100%; height: auto; max-height: 350px;">
</div>
<div style="flex: 1 1 50%; padding: 1rem; box-sizing: border-box;">
<h2>Feedback vs Zero feedback</h2>
<p>Canor Virtus M1 enables instant switching between the connection with the feedback or with zero global feedback. This has an influence on the overall performance of the power amplifier which results in a different listening experience.</p>
</div>
</div>Hopefully this should give you a starting point to work from!
Forum: Everything else WordPress
In reply to: empty space in desktop view due to post shown in cards.That will be overwritten though should the theme ever be updated!
For this reason, itβs recommended to let WordPress store custom CSS code in the database, rather than editing theme files. For Classic themes, custom CSS should go into APPEARANCE > CUSTOMIZE > ADDITIONAL CSS.
This is true! Good catch. π― ππΎ
If your theme does not have an additional CSS option, you can try adding this custom CSS via a plugin like Simple Custom CSS and JS.
Forum: Fixing WordPress
In reply to: Featured Images Appear BlurryCould you please link to the thumbnails you think are fine and the ones that you think are blurry? You can right click the thumbnails and select
Copy Image Linkto get their image URLs.I ask because none of the thumbnails currently on the frontpage of https://knewsgr.com seem to look much worse than the rest to me. They all look around the same quality.
Forum: Fixing WordPress
In reply to: Slow loading for wp adminDo the site speed issues coincide with times of high load on your site? If so, you may need to look into WordPress Optimization, including caching.
Also sometimes I get PHP error in Query monitor: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated+
Some PHP code on your site (probably in a plugin or theme) is calling PHP’s
strip_tags()function in a way that is deprecated. This looks like a deprecation warning only and should be fixed by the plugin/theme developer in a future update of the said plugin or theme. It is unlikely that this is slowing down your site.Forum: Fixing WordPress
In reply to: after elemantor update last night i cannot edit my web pagesSince this is related to Elementor, the folks over at the Elementor plugin support forum will be able to look into this for you.
The WordPress Block Editor will make this super easy, as the Media & Text Block does exactly what you want here, and that too with just a few clicks and no fiddling with HTML and CSS.
I cannot use the block editor which has this feature build in because it is not support on woocommerce products which is what i am doing.
The folks over at the WooCommerce plugin support forum may be able to help you with this if you can detail exactly what issue you have with the Block Editor + WooCommerce products. If you can get your WooCommerce site working with the Block Editor, it will likely make future WordPress maintenance and updates much easier, as the Block Editor is the default way of doing things now.
Forum: Fixing WordPress
In reply to: cannot installed two required plugins togetherSince these two plugins seem to be conflicting with one another, you ask about this on the Elementor support forum and/or the BA Book Everything support forum.
Forum: Everything else WordPress
In reply to: empty space in desktop view due to post shown in cards.One way forward then is to look at the theme yourself and try and figure out what’s happening when it does this:
On website homepages there are cards on my website in which content post or categories is shown but sometimes card are creating empty spaces when post are not equal to other card.
The height of these cards (the theme seems to call them panels) is likely controlled by CSS and you can try setting a
height: 100%attribute to the.panelclass:.panel {
border-radius: 6px;
box-shadow: 0 .5em 1em -.125em rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.02);
font-size: 1rem;
height: 100%;
}Editing your site’s CSS this way via the Firefox page inspector seemed to fix the issue locally for me.
To try this fix on your site, find your theme’s
style.cssfile and see where the change can be made. Please be sure to backup your theme before making any changes to it.For more on editing and updating themes, see the WordPress Theme Handbook.
Forum: Fixing WordPress
In reply to: Add feature to FooterI cannot see a WordPress site at https://jwhitech.com (I only see a blank white page)
I would like to enable a mobile phone feature for my company number at the bottom of the main page (footer).
You should be able to do this by adding the phone number to a Text Widget.
Also, I have added an image of our authorized certification logo, and I would like to make the certificate pop up when clicked.
You can look into using a popup plugin for this. If you just want to link to your certificate and don’t mind it opening in a new browser tab instead of a popup, you can add the logo using an Image Widget and then link to your certificate using the Image Widget’s
Link to:field.- This reply was modified 1 year, 10 months ago by Mahangu Weerasinghe.
Forum: Everything else WordPress
In reply to: Content going out of screen in mobile viewAs noted in the other thread you created, this too is a theme issue, as it is your theme that formats your site’s content for mobile devices. For more help with this, please contact Wow-Company, the developer of your theme IKnowledgeBase.
Forum: Everything else WordPress
In reply to: empty space in desktop view due to post shown in cards.The layout of your site is managed by your theme. It looks like the theme you are running is called IKnowledgeBase, by a developer called Wow-Company. Since this theme is created by them, they are the best point of contact for help with it.