• Forum
  • FAQ
  • Docs
Notice: In order to post a support question you have to have an account and be logged in.
Register  or  Login
  1. The title on image posts as a portfolio item has a transparent grey box with the title on it, all over the bottom part of an image post preview. Is there a way I can do this for video posts? Right now video posts have the title below the video thumbnail image.

    gwizie
    11 months ago
  2. Hi,

    Create a copy of listing-portfolio.php in child theme and replace the content with this content:

    <?php
        $height = tfuse_page_options(thumbnail_height);
        $width = tfuse_page_options(thumbnail_width);
        $tfuse_rates =  get_post_meta($post->ID, TF_THEME_PREFIX . _post_viewed, true);
        $post_type = tfuse_page_options(media_post_type);
        if($post_type==text || ($post_type==image && trim(tfuse_page_options(thumbnail_image))==) || ( $post_type==slider && tfuse_page_options(select_slider)==-1) || ($post_type==video && trim(tfuse_page_options(video_link))== && trim(tfuse_page_options(thumbnail_image))==) )
        {
            $class=item-text;
            $post_type=text;
        }
        else if($post_type==slider){
            $class=item-slides;
            $height = tfuse_page_options(slider_height);
            $width = tfuse_page_options(slider_width);
        }
        else $class=item-image;
    ?>
    <div class="item <?php echo $class; ?> isotope-item" style="width: <?php echo $width; ?>px;" data-featured="<?php if(tfuse_page_options(featured_custom_post)!=)echo tfuse_page_options(featured_custom_post); else echo 0;?>" data-rates="<?php echo ( !empty($tfuse_rates)) ? $tfuse_rates : 0; ?>" data-comments="<?php echo get_comments_number(); ?>">
            <div class="media_block preloader" style="height: <?php if($post_type==slider)echo $height+10; else echo $height; ?>px;">
                <div class="post-media">
                    <?php
                        if($post_type==slider)tfuse_header_content();
                        else tfuse_media();
                    ?>
                </div>
                    <a class="name" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                <a class="zoom" href="<?php the_permalink(); ?>"> </a>
            </div>
        <div class="descr">
            <?php if (tfuse_options(post_content) == content ) the_content(); else the_excerpt(); ?>
        </div>
        <span class="hide date"><?php echo get_the_date(Y-m-d H:i); ?></span>
    </div>
    

    Cheers,
    George

    George
    11 months ago
  3. Thanks, this worked. However there is a bit of spillover with the transparent box that the title text sits on...it goes over into the dark box that contains the image preview and excerpt below it. It's very slight, but I'd like the transparent box to just go to the edge of the picture and not outside of it. The left side of the transparent box is fine, it doesn't spill over and sits right on the edge of the image.

    gwizie
    11 months ago
  4. Hi,

    Please provide an screenshot with what changes you want to do.

    All the best,
    Marcelina.

    Marcelina
    11 months ago
  5. Its very hard to see...but on the right side of the transparent box it bleeds over from where the image stops. On the left side of the title, the transparent box fits perfectly where the image starts and doesnt bleed over. Attached a pic.

    Attachments

    1. screenshot.png (231 KB, 188 downloads) 11 months old
    gwizie
    11 months ago
  6. Hi,
    add this code in style.css file of child theme:

    .item-image .name {
    width: 91%;
    

    Cheers,
    Max.

    Max
    11 months ago

Add Reply

You must log in to post.

 

Add a new topic!

Chances are your issue is already answered, but if it’s not, you can always create a new topic.

Add new topic

Search forums

Searching for something specific? Type something and press Enter to search.