• H,

    I recently installed the Posts-by-Tag plugin and am having issues setting the title under the thumbnail. I tried contacting the plugin author via support but no luck – doesn’t seem interested.

    I read this thread: https://www.ads-software.com/support/topic/title-under-the-thumbnail-urgent?replies=27 – which provided a option which I tried on one of the plugin files (posts-by-tag/include/class-posts-by-tag-util.php) and it seemed to change my webpage although to an undesirable effect – once it removed the thumbnails and once the who site went blank. So I am thinking it has something to do with this page.

    Here is the code I altered:

    if ($thumbnail) {
                            if (has_post_thumbnail($tag_post->ID)) {
                                if ( $thumbnail_size == 'custom' ) {
                                    $t_size = array( $thumbnail_size_width, $thumbnail_size_height );
                                } else {
                                    $t_size = $thumbnail_size;
                                }
                                $output .=  '<a class="thumb" href="' . $permalink . '" title="' . get_the_title($tag_post->ID) . '" ' . $onclick_attr . ' >' .
                                    get_the_post_thumbnail($tag_post->ID, $t_size) .
                                    '</a>';
                            } else {
                                if (get_post_meta($tag_post->ID, 'post_thumbnail', true) != '') {
                                    $output .=  '<a class="thumb" href="' . $permalink . '" title="' . get_the_title($tag_post->ID) . '" ' . $onclick_attr . '>' .
                                        '<img src="' . esc_url(get_post_meta($tag_post->ID, 'post_thumbnail', true)) . '" alt="' . get_the_title($tag_post->ID) . '" >' .
                                    '</a>';

    Although – the title of the code above says ‘//saving the query’ so I’m not really sure if it is the right section I’m working on. Any help will be appreciated and I am happy to send the file/links to anyone who can help.

    Thanks in advance.

    [please continue with your existing topic at https://www.ads-software.com/support/topic/change-stylinglook?replies=9 ]

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

    (@pamkaur14)

    Hi,

    Any help on this would be greatly appreciated as I have not heard back from the plugin author. I have tried a few things and none of them have changed anything:

    The CSS for my theme doesn’t have an img-wpp-thumbnail code. It only has the following codes for thumbnails:

    /* .article */
    .sticky {}
    .article {margin-bottom: 50px; overflow: hidden; clear: both;}
    .article .post-thumb {padding: 2px; border: 0px solid #ddd; block;}
    .article .post-thumbnail {border: 0; block;}

    I tried adding a margin calling it !important to both the .post-thumb and .post-thumbnail lines and nothing happened.

    2. I tried adding a specific posts-by-tag line to the CSS “ul.posts-by-tag-item {display: block; margin-right: 10px!important;}” and nothing changed either.

    Neither of the above moved the title or created a margin to the right of the thumbnail.

    3. I have tried adding a
    after the <img src> line to the related.php file for my theme and nothing happened.

    I am running out of ideas and have no idea why it is absolutely not changing anything. My web address https://www.privategirls.com.sg.

    Any help would be greatly appreciated.

    Thread Starter Lightpurple

    (@pamkaur14)

    Number 3 above should have said ” I have tried adding a ‘
    ‘”.

    Thread Starter Lightpurple

    (@pamkaur14)

    Gosh…’break’.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to set title under thumbnail’ is closed to new replies.