-
AuthorPosts
-
February 7, 2016 at 4:35 pm #579189
Hey everyone,
So I’m a complete beginner with WordPress. I purchased a theme 3-4 days ago and have been tweaking it around for hours on end to understand how everything works and looks. I’m trying to build a very simple website for my photography. I want my Home Page to be a feed of my latests photos and then have a separate page to display everything in a grid (Masonry view). I want my home page to be called Feed. First problem is that I can’t use an advanced layout builder for posts, so all my posted images are not full width with no fade in effects and so on. I spend many hours trying to get Advanced LB to work with posts through code snippets for function.php and main.php, but I was unable to do so (that would be ideal for me). I do have an advanced layout button when creating a post but when pressed it shows nothing.
What I did is create a custom post type through Types plug-in, which I called Photo. I enabled an advanced layout builder through main.php for this post type. I was able to add the post archive as a main menu item and called it Feed. HOWEVER, I cannot make it a home page because it’s not listed under pages and it’s not a static page, it’s just an archive of posts of this type. My questions: How do I make it a home page? Is there a way to add a new page and feed my new posts into it instead? Or are all new pages static and cannot be used for posts? Is there a way to modify how my home page looks like if it’s a blog page and not a static page? Can I do what I want through portfolio post type?
Here’s the feed page I created: http://mete.photography/Feed/ Another problem with that solution is that I get a weird blank space in the beginning of my page before the latest post. I don’t know how to remove it, as it is not a static page and cannot be edited. As you can see, if you go to mete.photography , you get an empty page that’s considered my ‘blog’ page, but I can’t control the appearance of my posts, so I can’t use it.
Would really appreciate any help I can get. I’ve been looking around day and night for solutions and couldn’t really figure this out. I just want my home page to be dynamic feed of my latest photo-posts that I can build through advanced layout builder. I know it’s a lot of questions, but I figured I would clear that up right away, so I can move forward. Thank you in advance for your help and amazing work.
February 7, 2016 at 10:23 pm #579260So I got the Advanced Layout Builder to Work on the default post type, although it seems like it’s inadequate. If I publish a post, I only see “Read More” button on the home page. I want the whole post to be displayed on the page.
Alternatively, I was able to make CPT archive (which is not mete.photography/feed and called “Feed (CPT)”) to be home page using this code:
add_action( "pre_get_posts", "archive_page_as_front_page" ); function archive_page_as_front_page( $query ){ if( is_admin() ) return; if( $query->get( 'page_id' ) == get_option( 'page_on_front' ) ){ $query->set( 'post_type', 'photo' ); $query->set( 'page_id', '' ); $query->is_page = $query->is_singular = 0; $query->is_archive = $query->is_post_type_archive = 1; } }
However, this removed all my menus.
- This reply was modified 8 years, 10 months ago by mepho.
February 9, 2016 at 12:40 pm #580352Hi!
Thank you for using Enfold.
If you want to enable the builder for your custom post type, please refer to this link: http://kriesi.at/documentation/enfold/use-the-layout-builder-with-any-post-type/
NOTE: You have to replace “movie” with the name of your own custom post type.
And you don’t have to set the archive page to be the home page because you can create a page with a blog post element. You can then set this page as front page in the Enfold > Theme Options. Make sure that the custom post type have custom taxonomies.
For more info regarding the theme, please browse through the documentation: http://kriesi.at/documentation/enfold/
Regards,
IsmaelFebruary 9, 2016 at 2:05 pm #580396Hi. Thank you for your reply. However, that did not fully solve my problem.
1. As I said, I already enabled the builder for all post types. That was not a problem.
2. The only two ways to put a blog element (that I know of) is a post slider and blog posts content (in the advanced layout builder). The problem with then that it does not display share buttons // caption right on the main page. Moreover, it can only display thumbnails and not full posts (which is what I need). I don’t want my image to be a link to another page with the same image of the same size, and I don’t want to have an overlay arrow every time I hover over it. I want my posts (that are just images with captions) to be all on one page that I can post to. I created 3 feeds to show my problem. Feed CPT is archive for a custom post type and the way it looks is exactly what I want – photo // share buttons // caption. However, I can’t make it a home page. Two other feeds are post slider and blog post content element. In those two the view is not what I want – image not full size, has an overlay link, and no share buttons or caption.I’m trying to make it a simple feed page like this mete.photography/feed – similar idea to instagram – photo, caption, share buttons for every post. Is there a way to solve the problems I described or a better way to do that?
- This reply was modified 8 years, 10 months ago by mepho.
February 11, 2016 at 6:40 am #581449Hi!
. I don’t want my image to be a link to another page with the same image of the same size, and I don’t want to have an overlay arrow every time I hover over it.
We can disable that using css but we need to see the actual page. The links above are missing.
The problem with then that it does not display share buttons // caption right on the main page. Moreover, it can only display thumbnails and not full posts (which is what I need). I
If you want to display a caption or excerpt, edit the posts then add the summary in the Excerpt field.
share buttons
The theme’s share button element is only meant to work on the single post page, not on the blog overview page. It will fetch the current page id, not the post ids. If you need to add share buttons on the blog overview page, you have to install a third party plugin like AddThis or ShareThis.
Cheers!
IsmaelFebruary 11, 2016 at 5:05 pm #581755Hi Ismael,
Thank you for helping out! Here’s the link – http://mete.photography/feed-2/
Please let me know how I can disable the hover link effect. Also, if it’s possible to disable the overlay and move the link arrow to the corner during mouse hover, that would work too. I just don’t want it to fully obstruct the view. Thank you!
February 14, 2016 at 6:45 am #582833 -
AuthorPosts
- You must be logged in to reply to this topic.