Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1481321

    Hi, I’m looking to build a page that looks like a webshop using blog post as a product page.
    I’v had a look at post slider to show and short products but it just has one row, is there way to build the page with multiple rows and columns to show all the product posts.

    I really hope this is possible

    Thanks Alan ;)

    #1481351

    Hey Alan,

    Thank you for the inquiry.

    Have you tried using the Product Grid element? You can also use the Blog Posts element with the Blog Style set to Grid Layout, but it will require some adjustments to display elements such as the Add to Cart button. Let us know if you need more info.

    View post on imgur.com

    Best regards,
    Ismael

    #1481388

    Hey Ismael

    Thanks got that one ;)

    I’m designing the post using the Advanced builder, when using the Advanced builder I’m only able to show
    – The image
    – Title
    – Read more
    – The date.

    I’d like to show
    – The image
    – Title and Excerpt + Read more

    I don’t want to show the date and the category

    Please have a look at the linked image

    Thanks ;)

    #1481413

    Hi,

    Thank you for the update.

    You can disable the Blog Post Category in Enfold > Blog Layout > Blog Meta Elements to hide the post categories. If you’re using the ALB for the post, make sure to manually define the excerpt in the Excerpt field, otherwise, it won’t display any excerpt.

    Best regards,
    Ismael

    #1481423

    Hi Ismael,

    I’v tried but I can’t get to look right

    This is what I’v done
    – Post is build with the Advanced Layout Builder

    Blog Layout settings
    – Blog Layout is set to – Use the advance layout build to…..
    – Blog Meta Elements – Nothing is selected all is off

    The Blog Post element settings on the page
    – Blog Style – Grid Layout
    – Define Blog Grid layout – Only excerpt + Read More Link

    Please have a look at the link below

    Thanks ;)

    #1481517

    Dear @Ismael,

    However, I don’t fully understand the part regarding the manual excerpt.

    I’ve added the following snippet, and now the excerpt correctly shows the content from the first ALB text block ([av_textblock]), even if the manual excerpt field is empty:

    add_filter( 'get_the_excerpt', 'custom_alb_excerpt_fallback', 20, 2 );
    function custom_alb_excerpt_fallback( $excerpt, $post ) {
        if ( ! $excerpt && $post instanceof WP_Post ) {
            $raw_content = $post->post_content;
    
            // Extrahiere den ersten ALB Textblock (Shortcode [av_textblock])
            if ( preg_match( '/\[av_textblock.*?\](.*?)\[\/av_textblock\]/s', $raw_content, $matches ) ) {
                $inner = wp_strip_all_tags( $matches[1] ); // HTML entfernen
                $excerpt = wp_trim_words( $inner, 30, '...' ); // Kürze auf 30 Wörter
            }
        }
    
        return $excerpt;
    }
    

    Would you consider this a valid solution? Or is there any reason not to use such a fallback?
    Best HP

    #1481564

    Hi,

    Yes, the fallback should work as long as there is a text block in all of the posts. If not, you’ll need to define the excerpt manually. To display the title, make sure to select the correct option in the Define Blog Grid layout settings.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.