media-image tag rendering attachment_id in src instead of URL if width and height is set
Hi,
I am currently building a wordpress site based off of the theme below:
- Wordpress 5.2.4
- Unyson 2.7.22
- Theme: https://themeforest.net/item/energy-solar-and-alternative-energy-wordpress-theme/19153629
I am facing the same issue as the posts below: https://github.com/ThemeFuse/Unyson-Shortcodes-Extension/issues/23 https://github.com/ThemeFuse/Unyson/issues/2871
tl;dr If width and height is set, it goes through fw_resize, which returns the attachment_id instead of image URL. This is then used as src for img tag, causing assets to not be loaded.
My questions are as follows:
-
Did you manage to find a permanent solution for the issue threads above?
-
I tried to edit the code in shortcodes/media-image/views/view.php by adding the temporary solution provided above in the above thread (https://github.com/ThemeFuse/Unyson-Shortcodes-Extension/issues/23), but results on the page does not reflect the changes in code. Is there any additional steps I have to take to get the code to be reloaded by Unyson?
-
What is the best way to debug the plugin? I added logs to various places, but they don't seem to get called. I noticed the suggested method was to use fw_print(). Where do these logs get printed?
Thanks,
Pawit