Site logo

Archived topic

swich title and excerpt position

5 replies · Started by alexgen on November 16, 2020

Viewing posts 1–6 of 6

from some crazy purposes i need to switch "title" and "excerpt" position on my archieve page.
Yes, i really need to display excerpt where title is, and title where excerpt.

but i can't find code to move in archieve.php :( any tips where is that code?

on search plugin it was easy, i just changed order like that:
<h2>"><?php the_excerpt(); ?></h2>
<p><?php the_title(); ?></p>

Hi there,

Any chance you can link us to the site in question?

You can use the private information field.

Let me know :)

hi my page is an archieve of old documents with signatures.

So signstures in title place are great to manage my base, but difficult for users who want see first text, not signature :)

so i'm looking for part of php where i can switch order and style of display title and excerpt like:
first: bold content-linking excerpt
second: small signature

i did it on my search plugin, but cant find this php line in theme

can u help me with that?

Hi there,

the simplest way would be with some CSS like so:

.generate-columns-container .inside-article {
    display: flex;
    flex-direction: column;
}

.generate-columns-container .inside-article .entry-summary {
    order: -1;
    margin-top: 0;
    margin-bottom: 0.5em;
}

great! thanks so much, it solved my problem ...with no touching php :) :)

Glad to be of help!

This archived topic is closed to new replies.