WordPress.org

Ready to get started?Download WordPress

Forums

Spun
[resolved] Only display title on post links (6 posts)

  1. katees
    Member
    Posted 1 year ago #

    I only want the post titles to show in the circles (not any images found in the post). Something similar was addressed here:

    http://wordpress.org/support/topic/show-post-title-over-images-during-rollover?replies=10

    and I hope this may be as simple as removing some of the code, but can't figure out what to remove?

  2. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    Following the first part of the instructions in that forum -- create a child theme and copy content-home.php from the parent theme into your child theme -- then replace this piece of line 42:

    <?php echo $thumb; ?>

    With something like this:

    <span class="no-thumbnail"><?php the_title(); ?></span>

    Then you can remove the code in lines 7 - 38.

  3. katees
    Member
    Posted 1 year ago #

    This works to display just the title but I lose the circle - the title is displayed in the top left of the circle space with no design. Any ideas?

    Thanks for your help!

  4. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    Can you post a URL?

  5. katees
    Member
    Posted 1 year ago #

  6. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    Ah, in the part of your child theme's content-home.php that looks like this:

    <?php post_class( $postclass ); ?>

    Change $postclass to 'no-thumbnail' (include the single quotes).

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.