-
AuthorPosts
-
February 26, 2015 at 6:24 am #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
February 27, 2015 at 6:30 am #403188Hi!
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!
JosueMarch 3, 2015 at 1:47 am #404883Hey 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’ );March 3, 2015 at 2:56 am #404906Hi!
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!
JosueMarch 3, 2015 at 3:29 am #404914ah 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.
CheersMarch 3, 2015 at 4:18 am #404923Hi!
Have you tried in Settings > Permalinks?
Cheers!
JosueMarch 17, 2015 at 3:30 am #412736Hey Josue – still working on this one..will come back to you soon as I’m not sure if i’ve solved it yet.
CheersMarch 17, 2015 at 4:54 am #412752We looking forward to hearing from you :)
Regards,
JosueMarch 18, 2015 at 6:19 am #413412This reply has been marked as private.March 18, 2015 at 8:58 pm #413972Hi,
Can you please hand me a temporary FTP account? post it here as a private reply.
Regards,
JosueMarch 19, 2015 at 2:21 am #414094This reply has been marked as private.March 19, 2015 at 3:45 am #414124Hey!
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,
JosueMarch 19, 2015 at 4:05 am #414131Wow 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
March 19, 2015 at 4:33 am #414140Hey!
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 makethe_excerpt
appear instead of the full content.Cheers!
JosueMarch 19, 2015 at 7:02 am #414177Thanks 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!
March 19, 2015 at 7:32 am #414184Check it now.
Regards,
JosueMarch 19, 2015 at 8:12 am #414195right – you made some changes to the child stylesheet??
thanks!March 19, 2015 at 10:04 am #414237No, i did this.
-
AuthorPosts
- You must be logged in to reply to this topic.