Home Forums WoodMart support forum Standard gallery shortcode won't work

Standard gallery shortcode won't work

Viewing 30 posts - 1 through 30 (of 39 total)
  • Author
    Posts
  • #177912

    florianibe
    Participant

    Hi,

    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?

    https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/20264492/comments?page=184&filter=all#comment_23786169

    Florian

    #178002

    Hello,

    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

    #178122

    florianibe
    Participant

    Thanks 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/test/

    https://2020.baust.de/wp-admin/theme-editor.php?file=inc%2Fshortcodes%2Fgallery.php&theme=woodmart

    #178148

    Hello,

    Please provide FTP access.

    Best Regards

    #178153

    florianibe
    Participant

    FTP data

    #178280

    Hello,

    Now we have restored the standard gallery. We shall fix it in our nearest update.

    Best Regards

    #178484

    florianibe
    Participant

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

    #178519

    Hello,

    We shall be able to fix in the nearest update.

    Best Regards

    #178522

    florianibe
    Participant

    Can you tell me when it would be released?

    #178530

    Hello,

    I can not tell you the exact date however I think it would be the end of the Marck/beginning of April.

    Best Regards

    #178543

    florianibe
    Participant

    Ok its really long. Could you make the fix on my site? So we cant work.

    #178694

    Hello,

    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

    #179331

    florianibe
    Participant

    Hi, what about downgrade the theme to older version. Is it possible?

    #179378

    Hello,

    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

    #179511

    florianibe
    Participant

    We 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”.

    #179584

    Hello,

    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

    #179586

    florianibe
    Participant

    And why doesnt work it on https://2020.baust.de/test/?

    #179699

    Artem Temos
    Keymaster

    What 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.

    #179738

    florianibe
    Participant

    Please compare

    https://2020.baust.de/test/
    [gallery columns="5" link="file" ids="3538,3481,3385,3533,3528"]
    WoodMart 4.5.2

    and

    https://www.bagmatic.com/de/test/
    [gallery columns="5" link="file" ids="837,835,833,831,829,822"]
    WoodMart 3.8.1

    Same Shortcode-use

    I dont know whats happened 🙁

    #179740

    Artem Temos
    Keymaster

    But 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.

    #179744

    florianibe
    Participant

    it 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.

    #179759

    Artem Temos
    Keymaster

    Be 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

    #179844

    florianibe
    Participant

    I 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:

    https://2020.baust.de/test/

    #179927

    Artem Temos
    Keymaster

    Try 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;
    }
    #180042

    florianibe
    Participant

    Wont work. Take a look: https://2020.baust.de/test/
    The problem is the caption i think.

    #180047

    Artem Temos
    Keymaster

    It seems to work correctly now on your website https://gyazo.com/bff19158e1f8cb92184750fcc0d88286

    #180071

    florianibe
    Participant

    Yes you are right for Chrome and Safari but in Firefox it doesnt work. Do you have an Edge to test?

    #180142

    Artem Temos
    Keymaster

    Could you please disable all external plugins so we can check?

    #180163

    florianibe
    Participant

    I 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.

    #180235

    Artem Temos
    Keymaster

    Please, keep all plugins disabled so we can check how it works in Firefox.

Tagged: 

Viewing 30 posts - 1 through 30 (of 39 total)