Gallery Slideshow
[resolved] Have any way to change "gallery" by "gss" automatically? (4 posts)

  1. BrunoSousa
    Posted 1 year ago #

    Hi. Thanks for this great plugin.

    My client doesn't have so much knowledge about editing shortcodes and html, so, I've hidden the "text" tab from him. I'd like to know if there is any way to change de word "gallery" in shortcode by "gss" automatically.

    Have any snippet to put in functions.php or something?

    I hope you can help me and already thank you in advance.


    Bruno Sousa.


  2. jethin
    Plugin Author

    Posted 1 year ago #

    Hi Bruno. No guarantees, but I believe adding this code to your theme's functions.php file should do the trick:

    remove_shortcode('gallery', 'gallery_shortcode');
    function gss_override_gallery($atts) {
    	$atts_string = '';
    	foreach($atts as $k => $v){
    		$atts_string .= ' ' . $k . '=' . $v;
    	$gallery_html = do_shortcode('[gss' . $atts_string . ']');
    	return $gallery_html;
    add_shortcode('gallery', 'gss_override_gallery');
  3. jethin
    Plugin Author

    Posted 1 year ago #

    Marking this topic as resolved.

  4. BrunoSousa
    Posted 1 year ago #

    Worked perfectly!

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gallery Slideshow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic