WordPress.org

Support

Support » Themes and Templates » Post the title below images

Post the title below images

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

    Install this Custom CSS Manager plugin http://wordpress.org/plugins/custom-css-manager-plugin

    Then use its “CSS Code” section of the dashboard to hold your CSS modifications.

    It’ll be something like this to get the titles to show:

    .hentry .thumbnail-title {
     display: block;
     bottom: -137%;
     overflow: visible;
    }

    Then something like this to get the space between the circles:

    .hentry {
     margin-bottom: 100px;
    }

    Of course you’ll have to change what ever you set there on Tablet and Mobile, as this theme is responsive.

    Hi there andrew. Thanks a lot for your time.

    It worked smooth, though had to change the content-home line for this:

    $thumb = get_the_post_thumbnail( $post->ID, 'post-thumbnail', array( 'title' => esc_attr( get_the_title() ) ) ) . '<span class="no-thumbnail">' . get_the_title() . '</span>';

    Anyway, is there a way to make it show only on custom categories? For example, I have 4 category pages, and only want the to show titles below images on 1 category page, while others only shows images without titles.

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    You can apply CSS to specific pages if that’s what you mean. Have you seen the classes in your <body> element when you view the page source?

    Ohh so basicly I can hide and show the title, based on the class of <body> element, thats it?

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    Yes you target the class that is unique to the page you want to style.

    Hi there.

    Sorry for the delay on answer. So far, working nice.

    About the distance between the picture and the title, is it possible to change?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post the title below images’ is closed to new replies.