Hello Support Team,
I’m wondering why it is not possible to manually sort my uploaded images in masonry gallery. Could you please help?
Hey freehaan,
Thank you for the inquiry.
This is a known issue in the latest version of WordPress. You have to temporarily use this code in the functions.php file to fix the gallery sorting until version 5.9.1 is released.
function ava_custom_css_admin_mod() {
echo '<style>
.wp-core-ui .attachments:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
</style>';
}
add_action('admin_head', 'ava_custom_css_admin_mod');
Best regards,
Ismael
Hi Ismael,
tanks for the Code. There seems to be a bug:
Deine PHP-Code-Änderungen wurden aufgrund eines Fehlers in Zeile 3 der Datei wp-content/themes/enfold-child/functions.php zurückgesetzt. Bitte beheben und versuchen, erneut zu speichern.
syntax error, unexpected token “&”
Ok, sorry – my mistake!
I copied it from the Email. Now I used the exact Code above and it works fine ;-)
Thank you for your help! You can close this topic.
Hi,
We are happy that Ismael could help you out! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Best regards,
Yigit