This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • donlangedonlange
    Participant

    Regarding:

    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,
    Don

    • This reply was modified 5 years, 6 months ago by donlangedonlange.
    • This reply was modified 5 years, 6 months ago by donlangedonlange.
    donlangedonlange
    Participant

    OK, 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 donlangedonlange.
    donlangedonlange
    Participant

    Hi 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,
    Don

    in reply to: Overlays on Top of Featured Image Previews #25151
    donlangedonlange
    Participant

    Thank you Ernest.

    Merry Christmas,
    Don

    in reply to: Overlays on Top of Featured Image Previews #25136
    donlangedonlange
    Participant

    So $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,
    Don

    in reply to: Overlays on Top of Featured Image Previews #25133
    donlangedonlange
    Participant

    Hi 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 donlangedonlange.
    in reply to: Overlays on Top of Featured Image Previews #25130
    donlangedonlange
    Participant

    Hi 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,
    Don

    in reply to: Overlays on Top of Featured Image Previews #25116
    donlangedonlange
    Participant

    Ernest,

    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,
    Don

    • This reply was modified 6 years, 5 months ago by donlangedonlange.
    • This reply was modified 6 years, 5 months ago by donlangedonlange.
    • This reply was modified 6 years, 5 months ago by donlangedonlange.
    • This reply was modified 6 years, 5 months ago by donlangedonlange.
    in reply to: Overlays on Top of Featured Image Previews #25082
    donlangedonlange
    Participant

    Hi 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,
    Don

    in reply to: Displaying Previously Viewed Posts #23573
    donlangedonlange
    Participant

    Hi Ernest,

    Is there anyway to extend ASP’s functionality to incorporate such a feature?

    Regards,
    Don

    in reply to: Overlays on Top of Featured Image Previews #23196
    donlangedonlange
    Participant

    OK, thanks Ernest…

    I’ll look into it this weekend.

    Will I be notified when my support nears expiration?

    Regards,
    Don

    in reply to: Overlays on Top of Featured Image Previews #23176
    donlangedonlange
    Participant

    Thank 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 donlangedonlange.
    in reply to: Is version 4.15.1 compatible with WP 5.1.1? #22195
    donlangedonlange
    Participant

    “… the next couple years”?

    and then what? :^O

    Don

    in reply to: Horizontal layout slide height #21824
    donlangedonlange
    Participant

    That’s fine Ernest.

    Thank you again,
    Don

    in reply to: Horizontal layout slide height #21808
    donlangedonlange
    Participant

    Yes, that’s what I was looking for! Thank you Ernest.

    Regards,
    Don

Viewing 15 posts - 1 through 15 (of 26 total)