Home › Forums › WoodMart support forum › Standard gallery shortcode won't work
Standard gallery shortcode won't work
- This topic has 38 replies, 3 voices, and was last updated 4 years, 7 months ago by Artem Temos.
-
AuthorPosts
-
March 4, 2020 at 4:36 pm #177912
florianibeParticipantHi,
after the last updates we have problems with the normal wordpress gallery shortcode. We disabled “Justified Gallery” in theme options and test with active option but some normal styles seems to be not loaded.
Do you have any idea how to fix it or any code to load the normal wordpress styles?
Florian
March 5, 2020 at 8:09 am #178002
Elise NoromitMemberHello,
Please find this file: woodmart/inc/shortcodes/gallery.php
Find this code:
$output .= " $image_output"; if ( false && $captiontag && trim($attachment->post_excerpt) ) { $output .= " <{$captiontag} class='wp-caption-text gallery-caption' id='$selector-$id'> " . wptexturize($attachment->post_excerpt) . " </{$captiontag}>"; }
Replace the code with this one:
$output .= "<{$itemtag} class='gallery-item'>"; $output .= " <{$icontag} class='gallery-icon {$orientation}'> $image_output </{$icontag}>"; if ( $captiontag && trim( $attachment->post_excerpt ) ) { $output .= " <{$captiontag} class='wp-caption-text gallery-caption' id='$selector-$id'> " . wptexturize( $attachment->post_excerpt ) . " </{$captiontag}>"; }
Best Regards
March 5, 2020 at 1:46 pm #178122
florianibeParticipantThanks for fast reply.
I changed it like your way and something happened but its not the normal wordpress gallery before the theme update.
https://2020.baust.de/wp-admin/theme-editor.php?file=inc%2Fshortcodes%2Fgallery.php&theme=woodmart
March 5, 2020 at 3:05 pm #178148
Elise NoromitMemberHello,
Please provide FTP access.
Best Regards
March 5, 2020 at 3:17 pm #178153
florianibeParticipantFTP data
March 6, 2020 at 10:25 am #178280
Elise NoromitMemberHello,
Now we have restored the standard gallery. We shall fix it in our nearest update.
Best Regards
March 7, 2020 at 9:23 am #178484
florianibeParticipantHi, i checked it and it woulb be better. No i activate the link to media feature for normal wordpress gallery but it wont work. On the mobile view the styles wouldnt work. I think you need a fallback to the old gallery version with all js and all standard styles.
Can you fix it now and in future updates?March 7, 2020 at 11:44 am #178519
Elise NoromitMemberHello,
We shall be able to fix in the nearest update.
Best Regards
March 7, 2020 at 12:19 pm #178522
florianibeParticipantCan you tell me when it would be released?
March 7, 2020 at 1:35 pm #178530
Elise NoromitMemberHello,
I can not tell you the exact date however I think it would be the end of the Marck/beginning of April.
Best Regards
March 7, 2020 at 2:07 pm #178543
florianibeParticipantOk its really long. Could you make the fix on my site? So we cant work.
March 9, 2020 at 8:07 am #178694
Elise NoromitMemberHello,
We have restored the default WordPress gallery. This gallery works in the way as it does now. It cannot be fixed quickly. We have tried, however, understood, that it requires more time, that is why it will be fixed in the new release.
You can use our gallery http://prntscr.com/rdm24e This gallery works correctly and popup also works well.
Best Regards
March 11, 2020 at 3:41 pm #179331
florianibeParticipantHi, what about downgrade the theme to older version. Is it possible?
March 11, 2020 at 7:25 pm #179378
Elise NoromitMemberHello,
The default WordPress gallery would work in the same way on the older version. It is the way it works.
You can use our gallery http://prntscr.com/rdm24e This gallery works correctly and popup also works well.Best Regards
March 12, 2020 at 10:05 am #179511
florianibeParticipantWe have another installations on version 3.8.1 and it works fine. We want the normal gallery because we use automatic image galleries of “mediathek folder plugin”.
March 12, 2020 at 2:48 pm #179584
Elise NoromitMemberHello,
Please describe what you mean saying “a normal gallery” and provide us the difference in details how it works in 3.8.1 and in 4.5.2.
Best Regards
March 12, 2020 at 3:04 pm #179586
florianibeParticipantAnd why doesnt work it on https://2020.baust.de/test/?
March 13, 2020 at 7:42 am #179699
Artem TemosKeymasterWhat exactly is not working there? Please, describe what do you want from the gallery and provide some screenshots of how it works with 3.8 and difference with the latest version.
March 13, 2020 at 10:55 am #179738
florianibeParticipantPlease compare
https://2020.baust.de/test/
[gallery columns="5" link="file" ids="3538,3481,3385,3533,3528"]
WoodMart 4.5.2and
https://www.bagmatic.com/de/test/
[gallery columns="5" link="file" ids="837,835,833,831,829,822"]
WoodMart 3.8.1Same Shortcode-use
I dont know whats happened 🙁
March 13, 2020 at 11:00 am #179740
Artem TemosKeymasterBut on the second example is not a default WordPress gallery but our “Justify gallery”. If you want to use it you need to enable it from Theme Settings and CSS generator and remove all the customizations provided.
March 13, 2020 at 11:12 am #179744
florianibeParticipantit does not matter. it just does not work.
I activate the justified gallery and use css generator:
https://2020.baust.de/test/Please take a look with your backend access and ftp data.
I dont know why it is in this case.
March 13, 2020 at 12:01 pm #179759
Artem TemosKeymasterBe sure that you revert all changes from this reply or reinstall the theme completely https://xtemos.com/forums/topic/standard-gallery-shortcode-wont-work/#post-178002
March 13, 2020 at 5:11 pm #179844
florianibeParticipantI completely upload the fresh new theme folder and dont have other styles in .css.
Justified gallery in css generator is activated and here you see what happened:March 14, 2020 at 9:57 am #179927
Artem TemosKeymasterTry to add the following code snippet to the Custom CSS area in Theme Settings to fix this issue.
.justified-gallery > div > .caption, .justified-gallery > a > .caption { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; padding: 5px; background-color: #000; color: #FFF; font-weight: 300; font-size: 12px; font-family: sans-serif; opacity: 0; transition: all .5s ease; } .justified-gallery > div > .caption.caption-visible, .justified-gallery > a > .caption.caption-visible { opacity: .7; }
March 15, 2020 at 9:39 am #180042
florianibeParticipantWont work. Take a look: https://2020.baust.de/test/
The problem is the caption i think.March 15, 2020 at 10:35 am #180047
Artem TemosKeymasterIt seems to work correctly now on your website https://gyazo.com/bff19158e1f8cb92184750fcc0d88286
March 15, 2020 at 11:41 am #180071
florianibeParticipantYes you are right for Chrome and Safari but in Firefox it doesnt work. Do you have an Edge to test?
March 16, 2020 at 7:41 am #180142
Artem TemosKeymasterCould you please disable all external plugins so we can check?
March 16, 2020 at 10:00 am #180163
florianibeParticipantI disable it and compare safari/chrome and firefox.
The problem is that the js dont add the width-attribute in style of the a-tag.
The console doesnt show an error. It seems that the code is not for firefox engine optimized.I test it also without minified theme option for css and js but nothing happened.
It is a bug in gallery script.
March 16, 2020 at 2:26 pm #180235
Artem TemosKeymasterPlease, keep all plugins disabled so we can check how it works in Firefox.
-
AuthorPosts
Tagged: Gallery
- You must be logged in to create new topics. Login / Register