[Resolved] Using specific pages instead of "latest posts" at homepage

Home Forums Support [Resolved] Using specific pages instead of "latest posts" at homepage

Home Forums Support Using specific pages instead of "latest posts" at homepage

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #1195545
    David
    Staff
    Customer Support

    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.

    #1195980
    ch1800

    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!

    #1196067
    David
    Staff
    Customer Support

    haha – yes the dreaded page turn when things get lost lol
    Glad to hear you got it resolved 🙂

    #1200350
    ch1800

    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?

    #1200718
    David
    Staff
    Customer Support

    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/

    #1201138
    ch1800

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

    #1201597
    David
    Staff
    Customer Support
Viewing 7 posts - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.