Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #402457

    Hi Folks – I’m using a child theme and have registered some custom post types and am using the avia layout builder so I have more control over the layout.

    – a coupel of things are happening – when I add the custom exceprt and no ‘read more’ tag into the body of the text – you’ll see it pulls the WHOLE post in including the sidebar! see the first post on this page http://sdtest.info/ntq/places/

    So to stop this I tried adding the ‘read more’ tag after the first image and paragraph in the post – but I’ve noticed that the featured image is pulled in and also the first image from the posts.I have to add the image at the top becuase I”m using the layout builder – it won’t automatically add it to the top. see the second post on this page http://sdtest.info/ntq/places/

    SO is there
    a) a way to stop the whole post coming in and just display my custom except with my ‘featured image’
    b) a way to have my featured image automatically added at top of my post when I’m using the avia layout builder?

    Cheers

    #403188

    Hi!

    1. Make sure to set that (Show Excerpt) in the Blog element settings.
    2. Edit template-builder.php and put the_post_thumbnail() somewhere before the content gets rendered.

    Cheers!
    Josue

    #404883

    Hey Josue – thanks for this – almost have it working

    1 – the feed for ‘Places’ is a slug generated by the Custom post types – so I can’t actually edit the page

    2 – where do you mean ‘make sure to set the the (show excerpt) in blog elements?

    3 – I can get the ‘places’ feed with the blog featured image and excerpt working with the ‘read more’ tag, but is there a way to get the featured image to automatically show in my post type when I’m using the layout editor?
    see here http://sdtest.info/ntq/places/queen-victorias-statue-in-queens-park/

    4 – I tried editing and adding the template-buider.php to my child theme directory and added this code but it didn’t show the post featured image

    require_once( dirname(__FILE__) . ‘/php/template-builder.class.php’ );

    the_post_thumbnail()

    $builder = new AviaBuilder();

    //activates the builder safe mode. this hides the shortcodes that are built with the content builder from the default wordpress content editor.
    //can also be set to “debug”, to show shortcode content and extra shortcode container field
    $builder->setMode( ‘safe’ );

    #404906

    Hi!

    I was referring to this – http://screencast.com/t/h9Xs98HN

    Regarding the thumbnail, the file you need to edit is /template-builder.php, it is located at the root of the theme directory.

    Cheers!
    Josue

    #404914

    ah okay – thanks for this Josue – that makes sense. Was trying to edit the places CPT slug but perhaps this isn’t possible? will use the layout builder to display the custom posts.
    Cheers

    #404923

    Hi!

    Have you tried in Settings > Permalinks?

    Cheers!
    Josue

    #412736

    Hey Josue – still working on this one..will come back to you soon as I’m not sure if i’ve solved it yet.
    Cheers

    #412752

    We looking forward to hearing from you :)

    Regards,
    
Josue

    #413412
    This reply has been marked as private.
    #413972

    Hi,

    Can you please hand me a temporary FTP account? post it here as a private reply.

    Regards,
    Josue

    #414094
    This reply has been marked as private.
    #414124

    Hey!

    Review your people archive page, also check your child theme directory to see what i’ve done and how to replicate it for other custom post types.

    Regards,
    Josue

    #414131

    Wow you are awesome thanks Josue – so you’ve created a custom template for the people page loop.

    Thanks heaps!

    quick question – how do I change the post excerpt text to match the font size of the rest of the site ?

    I tried

    div.entry-content{
    font-size: 18px;
    }

    AND

    .entry-content{
    font-size: 18px;
    }

    but neither worked

    #414140

    Hey!

    In includes/loop-people.php, wrap the_excerpt() (line 200) with a p element:

    echo "<p>".get_the_excerpt()."</p">;
    

    I made use of CPT file templating, then copied the contents from Enfold archive.php / loop-index.php in their people counterparts and modified them to make the_excerpt appear instead of the full content.

    Cheers!
    Josue

    #414177

    Thanks Josue – it’s displaying the the excerpt with smaller text – how do I target this now?

    I tried

    div.entry-content{
    font-size: 18px;
    }

    AND

    .entry-content{
    font-size: 18px;
    }

    but neither worked

    Thanks!

    #414184

    Check it now.

    Regards,
    Josue

    #414195

    right – you made some changes to the child stylesheet??
    thanks!

    #414237

    No, i did this.

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