Site logo

Archived topic

Move post excerpt below title

9 replies · Started by Roger on November 21, 2022

Viewing posts 1–10 of 10

How to move post excerpt below title (in single post)?

I'm using GP Social Share.
I am using this code (hook) to show excerpt

<?php the_excerpt(); ?>

Hi there,

Which hook are you using?

Let me know :)

Hi Leo,

you can see in the link

It worked!

Text customization has stopped working. I'm using this code to customize the text.

.single .entry-header .entry-meta + p {
    font-size: 18px;
	  line-height: 1.4em;
    color: #333;
    font-weight: 400;
	  font-style: italic;
		margin-top:  10px;
}

Not sure if I fully understand.

Can you link me to a post so I can see the issue?

A little more explanation of what exactly isn't working might be helpful too.

The position of the abstract is correct (it is below the title).

I would just like to style it so that it looks different from the post text.

Attached link.

Thanks!

Change your content to this:

<div class="single-excerpt">
    <?php the_excerpt(); ?>
</div>

Then you can style it with this CSS selector:

.single .single-excerpt {

}

Thank you!

No problem :)

This archived topic is closed to new replies.