Featured Image doesn't show on the Product page - wordpress

I'm struggling with my wordpress page, with woocommerce. The featured image should be showing as the first image on the product page, but isn't. I've read a few other threads, like this one:
Product Images don't show (Woocommerce)
where they have some solutions, but the CSS they are proposing isn't working.
My page is here: www.byjgk.com , and for example, if you check out a product category page, like: https://www.byjgk.com/product-category/dresses/ , and then select a dress (e.g.: https://www.byjgk.com/product/the-jersey-maxi-dress-petite-in-sandstone/), you should then see the same featured which was on the category page also appear as the first image on the product page as WELL/(in addition to the other 3 images that are there).
Normally, that's how the image feature works, so there must be some opacity/other problem.
I also did try changing the woocommerce.css file, (which was also a suggestion in the link above, to put this there:
.product.has-default-attributes.has-children > .images{opacity :1;}
but i didn't see any class called exactly that with the word "children".
I also tried to put the "jquery" that was suggested:
$('.woocommerce-product-gallery--with-images').css('opacity', 1);
into the functions.php section, but it said this query had some sort of error, or it didn't like the "$" maybe...
Soooo, I'm at a loss. please help. I see a few people have asked about this on some other forums, but many don't figure it out.
thanks!

Okay, after some trial and error it seems like one of my own plugins was causing this conflict. If anyone is using this plugin, be aware of the potential - i haven't yet played with the settings on this pluging to see if that's changable.
https://wordpress.org/plugins/gallery-slider-for-woocommerce/

I would suggest you to update the theme, plugins and wordpress as well because something is not working properly for you, if the problem continues, start deactivating the plugins to understand what is causing this problem.

Related

How to locate changes to code for missing post titles in archive pages in wordpress?

I am trying to restore the missing titles to posts in my categories, tags, search pages.
I vaguely remember changing something but don't know where. It was a long time ago.
The problem is so bad that if there is no 'read more' button, you can't click on a result to go to the page.
Any tips about how to find where this code change would be located?
Thanks.
if you know what the code was there is a plugin called string locator (https://wordpress.org/plugins/string-locator/) it allows you to give a small snippet of code or a call and it will tell you every place that code is found in the entirety of WordPress.
OK after quite a while of various methods, I re-installed the plugin 'yellow pencil'. I had made some customizations that the plugin claims to be reversible at the click of a button globally (It didn't delete them). I found a post title that did appear and then reverted all customizations globally to it on a live category page. Thank god it all works as it should now!
Thank you to all that tried to help me.

Some feature images changes dimension after posting a new blog post

I have posted a new blog. After that in my list of blogs I see the feature images of few posts have changed their dimension to 1 * 1 px. Attached is the snapshot of inspect, the first image which is the latest one has good feature image, but next post does have feature image but just the dimensions are 1*1 px. If you check my website, you will notice there are subsequent posts which have same dimension issue, few of them are good !!
I checked the media where dimensions are good and I have not changed them. I double checked and feature images for blog post is enabled. I uninstalled the jetpack which was one of the suggestion I got from WordPress forum while looking for similar issue.
Astra theme and editor plugin Elementor.
Is there something I am missing ?
Check out website where you will see the issue. Let me know if you need more information.
https://www.patelaalap.com (I have fixed my website now, I don't have the solution, I just removed the feature images and re-added those and it worked. It is a temporary fix but still, I would appreciate any help so I can fix this once in for all.

Featured images not appearing

So I’ve been struggling with this problem for a few weeks now. I’ve deactivated and reactivated every plug-in AND tested my theme to see if that was the cause (and it was not) but for some reason most of my featured images are not showing up and it’s terribly annoying since it messes with the way my posts appear on my blog.
I’m considering leaving WordPress if this does not get resolved soon.
The featured images on my blog will not appear. They can be uploaded and edited. I’ve rebuilt their thumbnails. They are just fine until I attach them to a post and then they won’t show.
The problem is when I set a featured image. I can click on an image I uploaded, but it won’t actually attach to the post. After I select a featured image, it says “Click the image to edit or update” or “Remove Image” but there isn’t a picture there and when I update or publish the page, still no picture. This isn’t the case across the board and I have no idea why about six pictures have worked and the others haven’t. I’ve resized them to be the same size, same picture quality, even similar names. I’ve tried it all. I don’t know what’s wrong.
How do I fix this?
If there is no code or image is hard to understand what is happening. Could be a lot of things
The theme you have does not call those images or have to be called in a different manner. Check the theme manual or get another. (hardest way an not recommend to do it) revise the theme code to check if it does it.
Check that you are in the correct page, featured images are for posts check that you are not in a page url. Click on the url on top of the post to go directly to the post page. Also publish it before going to the post url.
Surelly there may be other thing to take in consideration, but these are the most common. Without more information of the problem is really hard to get a proper answer.

wordpress, loading posts IN page (shorthand code?)

I have never used wordpress as a cms for a site so please forgive my obliviousness. I tried to google this for a bit with no luck, I think I am either phrasing this wrong or thinking about it incorrectly.
I have page on wordpress that I would like to feed in a bunch of "news" posts. Can I code this within the actual page (like the text input section). How would I go about doing this. Is it possible to have a plugin or some shorthand code that would feed in all the posts with a certain category, and further more is this possible to do within just the general page editor (just within the wp-admin panel). Again, sorry for my obliviousness, I feel like this is probably a pretty simple answer, but I haven't worked on wordpress in years.
Thank you for your time!! Any points to the right direction would be incredibly helpful.
You can try:
[display-posts tag="advanced" posts_per_page="20"]
This will list the 20 most recent posts with the tag ‘Advanced’.
For more options, check this: http://en.support.wordpress.com/display-posts-shortcode/

Wordpress Comment Display Modification

I'm having trouble with modifying the way comments are displayed.
Currently they are always displayed as "Comments (%)". Changing the code that's displaying the comments to doesn't seem to do anything.
Where can I properly change the way # of comments are displayed?
I'm using the primepress theme - http://www.techtrot.com/primepress/
Blog link - http://stringo0.teamjl.net
My goal is adding a comment bubble displaying the number of comments - any easier way to do this is appreciated as well!
Everything you need to know about what's available in showing comment meta: Template Tags/comments popup link « WordPress Codex
Not familiar with that particular theme, but in some there are multiple references to the comment functions, depending on the context (eg display single post, multiple posts, search results, page, etc). So check all the php files for references to the comment functions.
I'm not sure why, but the comments_number and related popup function didn't work for me. I think it's because of some filters interfering, not sure which ones - could be the intense debate commenting plugin, because I noticed that it redirects to a different anchor (#idc...).
I ended up using another function, called get_comments_number which I found by looking into the wp source code.

Resources