Site logo

[Resolved] Help with WP_Featherlight

Home Forums Support [Resolved] Help with WP_Featherlight

Home Forums Support Help with WP_Featherlight

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #723622
    Sergei

    Hello! I read a WP_Featherlights documentation for making gallery, but really don’t know where to put these CSS and JavaSciprt codes.

    And maybe somebody know how to make it this one, when i click on the image, then text apears under the image.

    Thanks.

    #723628
    Leo
    Staff
    Customer Support

    Hi there,

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Javascript would usually go into wp_footer in Hooks Elements:
    https://docs.generatepress.com/article/hooks-element-overview/

    Let me know if this helps 🙂

    #723647
    Sergei

    Leo, this CSS not work for me in child-themes style.css. Its really not a CSS code.

    Simply include the extension CSS and JavaScript Files after the regular featherlight files like this:

    <link href="//cdn.rawgit.com/noelboss/featherlight/1.7.13/release/featherlight.min.css" type="text/css" rel="stylesheet" />
    <link href="//cdn.rawgit.com/noelboss/featherlight/1.7.13/release/featherlight.gallery.min.css" type="text/css" rel="stylesheet" />

    Im DONE with it, but how can i make to text showing when i open image. Like image caption. In page where i have gallery not showing text but when i click on image and under image showing a text.

    #723948
    Tom
    Lead Developer
    Lead Developer

    Have you considered just using their WordPress plugin that does everything for you?: https://wordpress.org/plugins/wp-featherlight/

    #723965
    Sergei

    Tom, yes, i using that plugin from wordpress.org

    I really don’t know how to make text visible on image when open it. When i use image caption they show in image and in page under image and the when i use mobile to look this page, it looks horrible.

    I try alt-text, description but nothing work for me.

    #724121
    Tom
    Lead Developer
    Lead Developer

    What if you add a “caption” to the image? The description on their plugin page says that should work.

    #724226
    Sergei

    When i add caption to image, then this caption appears on image when open it and under image when its not open. And when i use mobile this looks very weird. I need to caption shows only when i click on image.

    #724557
    Sergei

    Any solutions for that?

    #724574
    David
    Staff
    Customer Support

    Hi there,

    if you want to add the captions then we can look at the CSS needed to remove it from the unopened image.

    #724589
    Tom
    Lead Developer
    Lead Developer

    Any chance you can link us to a page where we can see the captions now?

    #724645
    Sergei

    Here is the link for these test images. I wish to disable text on page, because on mobile looks very weird.

    I just wish to put my products in page like gallery and in caption write a text about that product.

    And how to put dropdown sub-menu full witdh? I don’t know why it looks like this.

    #724691
    David
    Staff
    Customer Support

    Try this CSS:

    .wp-caption-text {
        display: none;
    }

    What device / browser is that submenu image from? Not seeing this on iOS.

    #724695
    Sergei

    David, thanks a lot for CSS, is work for me. Now in gallery not showing captions, but on images still working.

    Using laptop and google chrome. And test with iPhone and the same thing in sub-menu. Like this last container in sub-menu not in full witdh.

    #724775
    Tom
    Lead Developer
    Lead Developer

    That’s being caused by this custom CSS:

    .main-navigation ul ul {
        width: auto;
        white-space: nowrap;
    }

    Try replacing it with this:

    .main-navigation .main-nav > ul > li > ul {
        width: auto;
        white-space: nowrap;
    }
    
    .main-navigation ul ul ul {
        width: 100%;
    }
    #724959
    Sergei

    I replace this code, looks better but not like all sub-menu witdh. Still have small gap.

    Maybe its because sub-menu is aligned to the left? When i create new pages and put in sub-menu is the same problem. All pages goes to the left side.

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.