Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • When activating this plugin I get the same error message as described above:

    wp-content/plugins/maintenance-mode-for-woocommerce/includes/class-nf-maintenance-i18n.php on line 18

    I’m on WordPress version 5.7.2 and WooCommerce version 4.9.0

    –>

    fixed by removing the comma after “$path,”

    CHANGE

    // Load local translations
              	load_plugin_textdomain(
            			'maintenance-mode-for-woocommerce',
            			false,
            			$path,
                );

    TO

    // Load local translations
              	load_plugin_textdomain(
            			'maintenance-mode-for-woocommerce',
            			false,
            			$path
                );
    • This reply was modified 3 years, 10 months ago by StevenWP.
    • This reply was modified 3 years, 10 months ago by StevenWP.
    • This reply was modified 3 years, 10 months ago by StevenWP.
    Thread Starter StevenWP

    (@stevenwp)

    Hi @raducan,

    I am sorry for the late reply.

    I’m not sure why but in the Customizer > Woocommerce > Productimages I can only set “Thumbnail cropping” options.

    • 1:1
    • Custom – to change the aspect ratio
    • Uncropped

    I dont have an option there to set a custom size…

    Kind regards

    Thread Starter StevenWP

    (@stevenwp)

    Thank you @jarretc, I’m not a programmer so I’ve tried all sorts of methods that are explained here: https://code.tutsplus.com/tutorials/a-guide-to-overriding-parent-theme-functions-in-your-child-theme–cms-22623

    I tried to add your code at the bottom of the child theme’s functions.php but unfortunately it breaks the site; “The site is experiencing technical difficulties.”

    Any idea what causes this? Thanks again!
    Kind regards

    • This reply was modified 5 years, 7 months ago by StevenWP.

    Hi folks,

    Here I am again ??
    I have found the answer to my questions.

    When I installed WordPress I decided to change the name of the “wordpress” folder to something obscure. for example: “mywpcore”, this was a tip from Chris Coyier & Jeff Starr in the Digging into WordPress book.

    Thats why I think i had to modify the code to get it working:

    <img alt="<?php echo $gallery->title ?>" src="<?php bloginfo('url'); ?>/mywpcore/wp-content/gallery/albumthumbs/<?php echo $gallery->gid ?>.jpg" />

    Is this still safe or is this a security leak?

    I have one last question. Now that we have modified the Nextgen Gallery script, is there a way to add an option in the Gallery administration panel, so the website editor can still easily choose/upload the album thumbnail?

    That would be soooo great!
    Thanks again ??

    Hi all,

    I think I have figured out where to use the code.
    This is what mine looks like now, but it doesn’t work :
    I have created the “albumthumbs” folder & in the CSS file I have set a width and height for the .ngg-thumbnail img class, but the image itself doesn’t show up.

    <?php foreach ($galleries as $gallery) : ?>
    
    	<div class="ngg-album">
    		<div class="ngg-albumtitle"><a href="<?php echo $gallery->pagelink ?>"><?php echo $gallery->title ?></a></div>
    			<div class="ngg-albumcontent">
    				<div class="ngg-thumbnail">
    					<img alt="<?php echo $gallery->title ?>" src="<?php bloginfo('url'); ?>/wp-content/gallery/albumthumbs/<?php echo $gallery->gid ?>.jpg" />
    				</div>
    				<div class="ngg-description">
    				<p><?php echo $gallery->galdesc ?></p>
    				<?php if ($gallery->counter > 0) : ?>
    				<p><strong><?php echo $gallery->counter ?></strong> <?php _e('Photos', 'nggallery') ?></p>
    				<?php endif; ?>
    			</div>
    		</div>
    	</div>
    
     	<?php endforeach; ?>

    Does anybody have an idea?
    Thank you very much!

    Hi all,

    I have the same question as mandawahoo, but I don’t know where to paste the code.

    <img alt=”<?php echo $gallery->title ?>” src=”<?php bloginfo(‘url’); ?>/wp-content/gallery/albumthumbs/<?php echo $gallery->gid ?>.jpg” />

    Can somebody explain?

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)