Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author cats_456

    (@cats_456)

    What do you mean by ‘gallery plugin’?

    Thread Starter Hefaistos

    (@hefaistos)

    Y want to use the wordpress gallery (http://codex.wordpress.org/The_WordPress_Gallery)
    plugin in jolene theme.
    If I click on a gallery Jolene opens than the narrowest page layout to show a picture summary.

    Theme Author cats_456

    (@cats_456)

    Well, an attachment page showing an image. I’m sorry, but Jolene has no options for attachment pages.

    You can change it in the child theme or by using plugin.

    To make attachment pages wide you can create a child theme and

    1. Add body class $classes[] = ‘no-sidebar’ to jolene_body_class

    if( is_attachment() ) {
          $classes[] = 'no-sidebar';
       }
       return $classes;

    2. Redeclare sidebar’s visibility function like so:

    function jolene_set_2_sidebars_visibility() {
    
        global $jolene_sidebars;
        if( is_attachment() ) {
    	$jolene_sidebars['right'] = '';
    	$jolene_sidebars['left'] = '';
        }
    }
    add_action( 'template_redirect', 'jolene_set_2_sidebars_visibility', 21 );

    3. Set content-with of single to be wide at Appearance > Customize > Content-width.

    There is another way for doing so:

    1. Hide all widgets from attachment with jetpack’s visibility plugin and set content-width (3).

    Thread Starter Hefaistos

    (@hefaistos)

    Thanks for the quick reply
    I’m going to try your solution
    By the way your Enigma theme is doing well with the plugin
    Y have taken out the call for sidebar in the gallery template’s
    But I like Jolene more

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘gallery plugin’ is closed to new replies.