• Can some help me I need to remove page title (Not image title) in imagebrowser view.

    I understand that when you click an image from a gallery it then loads that image up into the current Page. thus it still has the original page title for the gallery all I require is to have just the title of the image at the top.

    I’ve look at the code but can not see how I can remove this with out breaking it

    https://www.ads-software.com/extend/plugins/nextgen-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Adrian

    (@locka)

    Still not sure how to get rid of this. I’m wondering if I need to point the code that generates the imagebrowser view to a page with out a title. AS I know removing the title from the page works however I need that title as it’s the name of the gallery which does need to be shown when you are looking through that gallery but not once you have selected an image.

    The current process use the previous page E.g the on you have just come from.

    ANY HELP PLEASE!

    Thread Starter Adrian

    (@locka)

    On further instigation it may not be obvious to anyone looking at this post how the imagebrowser part of nextgen is working for me.

    I under stand that you can use imagebrowser via shortcode on a page. However mine activates when you click on an image from the gallery at this point it post the image into the page just used for the gallery with title of the gallery rest of the gallery remove. I wish to either remove the title of page when using imagebrowser or redirect it to another page with a blank header.

    Neither of which I can figure out how to do.

    Thread Starter Adrian

    (@locka)

    For anyone else wishing to fix this issue came up with this solution workaround

    if(strcmp('page-fullwidth-no-title.php', substr(strrchr(get_page_template(), '/'),1))):
    			if ( ! get_post_meta( $post->ID, 'hide_title', true ) ) {
    				the_title( '<h2>', '</h2>', true );
    			}
    		endif;?>

    This code needs to go php which creates the pages In my case this goes into loop-page.php. Basically it tells wordpress to not display page title if it matches a certain page template. I take no credit for this part of the code strcmp(‘page-fullwidth-no-title.php’, substr(strrchr(get_page_template(), ‘/’),1)) since I found it on another post

    I then need to configure gallery.php to display the page title instead. Just before the foreach loop.

    <H2>
          <?php echo get_the_title(); ?>
      </H2>

    Now when wordpress imagebrowser overlays it’s self on the gallery page there is no title for gallery to be displayed as this is only being done via gallery.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘imagebrowser removing page title’ is closed to new replies.