Site logo

Archived topic

Using specific pages instead of "latest posts" at homepage

21 replies · Started by ch1800 on March 9, 2020

Viewing posts 16–22 of 22

OK - you will need to create a new Header Element solely for the Blog.

1. Edit the Site Hero and in its Display Rules > Exclude: Blog.
2. Create the new Header Element for the Blog using the same settings as the Site Hero. Except the Content will be:

<h1>News</h1>

And you will use Background Image > Custom Image.

Ha, that's crazy...
For some reason I missed your reply here above, maybe because it is under page 2, and I just updated my previous post with the exact same solution...

Many thanks David and sorry for the confusion!

haha - yes the dreaded page turn when things get lost lol
Glad to hear you got it resolved :)

Hi David,

The project has been accepted as it is currently online at same URL and works quite good with the 4 blocks you CSSed at homepage.

I'm now using Advanced Excerpt for those blocks so that I can format the content a bit.

The only question was: can we replace the titles in text with logos (which are now inside the excerpt part)?

Is this something feasible?

Requires some custom work.

1. Add this PHP Snippet to your site:

add_action( 'wpsp_before_header','wpsp_add_logo_before_title' );
function wpsp_add_logo_before_title()
{
    $meta = get_post_meta( get_the_ID(), 'logo', true );
    if ( isset( $meta ) && '' !== $meta )
        echo '<img src="' . $meta . '" />';

}

2. Enable Custom Fields in the Page Editor, create a new Custom Field called logo and add the URL to the Image you want to display.

https://wordpress.org/support/article/custom-fields/

Terrific!
Thanks again David and team for your exceptional support!

Happy to be of help

This archived topic is closed to new replies.