ellasbubbles
Forum Replies Created
-
PERFECT –> Thank you for coming back with this answer; this is exactly what I was looking for
FOR MOBILE & IPAD:
add_filter('wc_ppcp_paylater_message_get_context_options', function($data, $context) {
if ($context === 'product') {
// Check if the user is on a mobile or iPad
if (is_mobile_or_ipad()) {
$data['style']['text']['align'] = 'center';
}
}
return $data;
}, 10, 2);
// Function to check if the user is on mobile or iPad
function is_mobile_or_ipad() {
if (wp_is_mobile()) {
// Further check for iPad
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if (stripos($user_agent, 'iPad') !== false) {
return true; // It's an iPad
}
return true; // It's a mobile device
}
return false; // Neither mobile nor iPad
}This is NOT possible because all content is within an iFrame; which is why I am reaching out here. Anyway, with this confirmation it sounds like your CSS method is the “best” although most finicky method to get this done.
The change request is that you would simply allow “Left Align”, “Center Align”, “Right Align” in a dropdown for mobile/iPad/Desktop since it has to do with the data being rendered and CSS manipulation is not actually a correct solution and literally bypassing the correct solution offered by the API that could easily be integrated into the plugin (see link in first comment)
View post on imgur.com
https://developer.paypal.com/docs/checkout/pay-later/gb/integrate/customize-messages/
With that being said below is the best solution for now (make sure to target the Span with the max-width class as this was forgotten by you in a previous reply)
#wc-ppcp-paylater-msg-product{ display: flex; align-items: center; justify-content: center; }
#wc-ppcp-paylater-msg-product span {max-width:210px}Yes, although then for variable products, or when Paypal uses an alternative messaging form with the range “$xxx.xx – $xxx.xx, the centering is off again
Thank you, although this was the first method we tried and does NOT work due to an inacurate assumption of the “width”
View post on imgur.com
Today is day 20 of no solution and terrible replies. Happy we have your attention now
After updating, and then clicking on “Settings” our CPU flew through the roof and crashed our server: https://i.imgur.com/G0GUDOM.png
Then I rebooted the server and your plugin was missing, and now it cannot be reinstalled: https://i.imgur.com/eTUvtZr.png
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] 6956 Characters added to DOMGreat, thanks Ernest!
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] 6956 Characters added to DOMThe new page I referenced above has over 7,000 characters. You can simply search for “wd-asp-instances” on the view source page, see attached screenshot references: https://imgur.com/a/ClL0dfA
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] 6956 Characters added to DOMSo if anyone plans on using your plugin on a page, they should be prepared for 26,000 characters of DOM code to be added to that page
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] 6956 Characters added to DOMPrevious product was deleted (took you to page not found)
Here you are: view-source:https://ellasbubbles.com/accessible-showers/wheelchair-accessible-and-ada-showers/
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] 6956 Characters added to DOMThis is NOT correct. The characters added to the DOM are on page load and NOT user interaction: view-source:https://ellasbubbles.com/accessible-showers/ella-roll-in-wheelchair-accessible-shower-base-48×37-center-drain/
My Pro support has expired…. so you essentially told me to stop talking 😀
Noted, will review
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] 6956 Characters added to DOMJust to confirm, you are stating that SEMRush is wrong here in the 2nd paragraph: “Search engines have begun focusing on pages that contain more content. That’s why a higher text to HTML ratio means your page has a better chance of getting a good position in search”
Forum: Plugins
In reply to: [Smart Slider 3] 22389 Characters added to DOMSure, as mentioned we will accommodate HTML to Text ratio on our end. As a corporate entity with eyes on the shifting expectations of the web, we recommend you do so as well. We understand the purpose of wrapping our content with your tags; however those tags can clearly be more efficient/shorter
Forum: Plugins
In reply to: [Smart Slider 3] 22389 Characters added to DOMWe understand there are adjustments we can make to minify this amount, although 90% of the code/HTML is still attributed to the default configuration/wrapping of SS Slider. This may be a consideration worth addressing in future versions as the web leans to a more efficiency standard; and that your plugin is currently flagged as a top attribute for Code/Content Ratio: https://i.imgur.com/YraAxTt.png
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] 6956 Characters added to DOMThank you for the reply, I understand these will not affect page use. Instead I am referencing the concern as flagged by SEMRush for SEO Standards: https://i.imgur.com/YraAxTt.png