This topic has 7 replies, 2 voices, and was last updated 10 years by sharmstr.

  • Author
  • #25745
     sharmstr
    Moderator

    1 – I wanted to remove the H2 ‘media gallery’ title from the page. If I copy rtmedia/media/media-gallery.php to my child theme, I get an error saying it can’t find ‘media-gallery-item.php’. To fix this, the include statement on line 27 needs to specify ‘get_template_directory()’

    COPY CODE
    <?php include (get_template_directory() .'/rtmedia/media/media-gallery-item.php'); ?>

    2 – When hovering over a thumbnail, a h4 image name pops up. The text is #444 and the background is rgba(0,0,0,0.6) which makes it nearly impossible to read the text.

    3 – Do you have any plans to style rtMedia’s Masonry when using their gallery shortcode?

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #26145
     Abe
    Keymaster

    Hi,
    1. I remember talking about this in the past with rtmedia guys and their solution was to copy also the media-gallery-item.php in the child theme.

    2. we fixed that. until next update you can add this css in quick css box

    COPY CODE
    
    #buddypress .rtmedia-container .rtmedia-list .rtmedia-list-item.masonry-brick a h4,
    #buddypress .rtmedia-activity-container .rtmedia-list .rtmedia-list-item.masonry-brick a h4,
    #buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.masonry-brick a h4 {
        font-size: inherit;
        color: #fff;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #26146
     Abe
    Keymaster

    3. I am doing some tests now to see what it implies

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #26147
     Abe
    Keymaster

    3. I have added the shortcode and it seems that it takes the structure from the media-gallery.php template
    See the attached screen

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    Attachments:
    You must be logged in to view attached files.
    #26190
     sharmstr
    Moderator

    1 – I should have been more specific. Is in the kelo code. Just add get_template_directory to Kleo’s rtmedia/media/media-gallery.php and it will fixed.

    2 & 3. Let me play around with that again today and I’ll report back.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #26191
     Abe
    Keymaster

    1. I understand what you mean but that won’t override that template if you want to do that and copy it to a child theme

    2. k

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #26210
     sharmstr
    Moderator

    1 – Oh. I think I understand what you’re saying. So, if I make that change, then I wouldn’t be able to customize media-gallery-item.php if I wanted to. Hmm. So only solution is to copy both files to the child theme, even if I only want to modify media-gallery.php. Right? If that’s the case though, couldn’t you just check for the existence of media-gallery-item.php in the child theme and if it isn’t there pull from the parent theme?

    2 – The css doesnt work because it for h4 titles within a buddypress div. The rtMedia gallery isnt contained in any buddypress layout. This works

    COPY CODE
    
    .rtmedia-list.masonry .rtmedia-item-title h4 {
        font-size: inherit !important;
        color: #fff !important;
    }
    

    3 – Look at your screenshot. The styling doesnt match other parts of Kleo. Compare it to the media in a members profile. If you could get it to match that, it would be a lot better. But, I’m going to play around with it a bit more. I report back later.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #26212
     sharmstr
    Moderator

    I’ve played around with the gallery and the image display in the member media tab. I finally got it looking decent. Part of the problem was my configuration. I didnt have cropping turned on for thumbnails. Out of the box, rtMedia does a terrible job of laying out uncropped images. Instead of digging into their code to fix that, I turned on cropping and regenerated the thumbnails.

    Thanks for the help!

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?