Can't disable Title and Captions with Lightbox

morgo1968morgo1968 Registered Users Posts: 10 Big grins

HI,

I have a gallery in journal style and I want to disable the title and captions, but I don't seem to be able to do it. I'm assuming it should be done from Lightbox? I have turned off the title and caption options in Lightbox as shown in the image below but the gallery still shows them.


I tried refreshing the page, logging out / in, clearing the page cache etc (I'm using Edge). What am I missing?

Thanks in advance.

Comments

  • AllenAllen Registered Users Posts: 10,013 Major grins

    Might have to write some CSS to only show for you when logged in.

    Al - Just a volunteer here having fun
    My Website index | My Blog
  • morgo1968morgo1968 Registered Users Posts: 10 Big grins

    Thanks. I'm not a coder.

    I was hoping someone would tell me if the Lightbox options shown in the attached image should disable the title and captions so that I know if I have a problem...

  • denisegoldbergdenisegoldberg Administrators Posts: 14,379 moderator

    You're asking about a gallery in journal style. The settings you referenced are for lightbox, not for journal style.

    As Allen noted you will need code to remove the title and captions in journal style.

  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited March 30, 2021

    We will need a link to this journal style gallery page of yours.
    This below is how we will find that class name for you, so the link to the page is important if you can't do it.

    We need to find the page node class identifier in the body html using a developer tool. (most browsers now have this.)
    Looks like this >> sm-page-node-cfDNv
    Every page is different so yours will be different from mine which is cfDNv
    The body classes do not refer to a journal style gallery so that unique page identifier will have to be used.

    Something like this below is in your "page source", Look in "<body class " for your sm-page-node-XXXXX.

    <body class="sm-user-professional sm-user-loggedin sm-user-owner
     sm-page sm-page-node sm-page-node-XXXXX sm-page-parentnode-zsB4B
     sm-page-parentnode-D2dwD sm-page-gallery sm-page-gallery-album
     sm-page-initialized" data-help-menu-open="false" style="">
    

    Add the following CSS rules to your "entire site", "all galleries" or "theme" CSS. Replace the cfDNv/XXXXX with yours.

    .sm-page-node-XXXXX .sm-tile-info {display:none}
    .sm-user-loggedin.sm-user-owner.sm-page-node-XXXXX .sm-tile-info {display:block}
    

    Notice there is no space between only the 1st three class names.

    This should hide your captions to all visitors. Only you as owner, logged in, will be able to see and edit them.

    Al - Just a volunteer here having fun
    My Website index | My Blog
  • morgo1968morgo1968 Registered Users Posts: 10 Big grins

    Thank you! That worked perfectly. I really appreciate your taking the time to help me out.

Sign In or Register to comment.