Forum Replies Created
-
AuthorPosts
-
November 27, 2020 at 1:43 am in reply to: Referenced thumbnail file size is much larger than the actual thumbnails #30384
donlange
ParticipantRegarding:
div.asp_r.asp_r.horizontal .results .item .asp_image {background-size: unset !important;}
I also tried div.asp_r.asp_r.horizontal .results .item .asp_image {background-size: initial !important;}
and I don’t see an improvement in image sharpness. Any other ideas?
BTW, I reduced the thumbnail image size for .asp_image from 440×330 to 400×300 and remove the thumbnail image size for .asp_res_image_url
Is my problem related to using the 16:9 aspect ratio for featured images? Can I use the 16:9 apect ratio for background images in the ASP modules?
Thanks,
DonNovember 26, 2020 at 10:03 am in reply to: Referenced thumbnail file size is much larger than the actual thumbnails #30377donlange
ParticipantOK, I’ll try it but I think I need to redo the thumnail size because I have asp_res_image_url rather than asp_image set to 440×330? I see now that asp_res_image_url is the anchor node that contains the image.
Thanks,
Don-
This reply was modified 5 years, 6 months ago by
donlange.
November 26, 2020 at 1:49 am in reply to: Referenced thumbnail file size is much larger than the actual thumbnails #30367donlange
ParticipantHi Ernest…
Thank you for the help, but the new thumbnails have been blurred somewhat even with $crop set to true:
add_image_size( ‘asp_res_image_url’, 400, 300, true );
I’m using 16:9 Featured Images cropped to 400×300 by WordPress for the ASP background images. I will add approx. 10% more resolution to the thumbnail size to see if that improves the ASP background image quality.
What do you think?
Thanks,
Dondonlange
ParticipantThank you Ernest.
Merry Christmas,
Dondonlange
ParticipantSo $r is a PHP object containing posts (or custom post types) found during the search and has_term() is checking each post for the taxonomy term of the indicated taxonomy?
Thank you,
Dondonlange
ParticipantHi Ernest,
Wow, that worked! I’m impressed.
What is contained in $r and how does it output all the members of the custom taxonomy considering we’re not even working inside the Loop?
Thank you very much,
Don-
This reply was modified 6 years, 5 months ago by
donlange.
donlange
ParticipantHi Ernest,
I have used is_tax() in a filter to modify page titles from the functions.php file; however, in this case I’m trying to check if an item (real estate property) in the ASP horizontal results belongs to a given taxonomy term and then print the term over the featured image.
Thank you,
Dondonlange
ParticipantErnest,
I’m sorry but that didn’t work either. Besides, I need to check that a specific taxonomy term is associated to the property; e.g, ‘status’ = ‘under-contract’.
I also tried just:
if ( isset($r->taxonomy) ) { …
and that didn’t print anything either.
Whereas, commenting out the PHP decision statement altogether does in fact print “Under Contact” to the browser.
Thanks,
Dondonlange
ParticipantHi Ernest,
I need to revisit this topic. Sorry it took me 6 months to actually make an attempt at placing overlays on featured images in the horizontal results.
I copied horizontal.php to my child theme, made a simple modification and without PHP logic, overlays are indeed placed on top of the featured images. The problem is, the template file does not recognize the is_tax() WordPress function.
Sample code:
<div class=’asp_image<?php echo $s_options[‘image_display_mode’] == “contain” ? ” asp_image_auto” : “”; ?>’
style=”background-image: url(‘<?php echo $r->image; ?>’);”>
<?php if ( is_tax(‘status’, ‘Under Contract’) ) { ?>
<div class=’void’>
<h1 style=”color:#ff0; text-shadow:0.08em 0.08em 0.13em rgba(0,0,0,0.5); padding-left:0.3em;”>
Under Contract
</h1>
</div>
<?php } ?>
</div>What do I need to do?
Thank you,
Dondonlange
ParticipantHi Ernest,
Is there anyway to extend ASP’s functionality to incorporate such a feature?
Regards,
Dondonlange
ParticipantOK, thanks Ernest…
I’ll look into it this weekend.
Will I be notified when my support nears expiration?
Regards,
Dondonlange
ParticipantThank you Ernest…
And can I insert PHP logic in these template copies to configure each taxonomy term in the horizontal results with a different overlay? In other words, I have one taxonomy term which inserts particular properties (CPT) into the horizontal results and other taxonomy terms associated to each search result (property) that may require different overlays. For example, the taxonomy term updated inserts the properties into the horizontal search results and SOLD and PRICE REDUCED are taxonomy terms that require different overlays for the updated properties. Forgive me for not having time to study your article this morning – I must be off to a meeting.
Thank you for the link and explanation.
Regards,
Don-
This reply was modified 6 years, 11 months ago by
donlange.
donlange
Participant“… the next couple years”?
and then what? :^O
Don
donlange
ParticipantThat’s fine Ernest.
Thank you again,
Dondonlange
ParticipantYes, that’s what I was looking for! Thank you Ernest.
Regards,
Don -
This reply was modified 5 years, 6 months ago by
-
AuthorPosts