-
AuthorPosts
-
July 31, 2014 at 10:57 pm #298454
I am new to Enfold (and web development in general), and struggling to figure out how to create a template page that I can use for all the posts I plan on having. Please help! I’ve spent hours searching through this forum, and tried the directions given here but I’m still not getting it.
Basically, I plan to have several different categories (or “collections”) of posts, such as:
- weekly video posts (of each Sunday’s church service)
- personal stories (some video, some with large image)
- featured resources
- events
However, I’d like all of the post pages in these categories to be styled the same way so that blog post pages dont look any different style-wise than non-blog pages. Basically I am wanting to re-create this page as my basic page template, for the entire site (other than the home page), but also specifically for these posts. Another example is here.
So, a full width 75%-of-screen-image at the top that may be either a video or a static image, with my content below. I don’t mind if the video doesn’t stretch the full width when playing, and would actually like the black boxes on either side when viewing on large screens (though I dont know how to do that yet).
I can create a page like this as a normal web page. I guess I’m really just asking: how can I have pages that are styled this way but also take advantage of the blog features of Enfold so that I can feature these pages/posts in other places (i.e. home page) using a Content Slider or some equivalent?
I also think the blog Category feature makes for a good way to organize all these posts into collections, so I want to be able to take advantage of that. Is this possible or do I need to simply build each “post” from scratch as an individual web page and organize them using menus and sub-menus?
Thanks for taking time to reply
August 3, 2014 at 8:37 am #299288Hi Joe!
I think this is the same or at least very similar to your question here which I answered already: https://kriesi.at/support/topic/help-with-organizing-video-blog-content/
Posts don’t have templates so you would need to create a custom page each week and fill in the content.
Cheers!
DevinAugust 4, 2014 at 5:10 am #299501This reply has been marked as private.August 7, 2014 at 4:52 pm #301189Hey!
You don’t need to modify the single.php template to make the template fullwidth. Just add this code to the enfold or child theme functions.php file:
add_filter('avia_layout_filter', 'avia_change_post_layout', 10, 2); function avia_change_post_layout($layout, $post_id){ if(is_single() && get_post_type($post_id) == "post") { $layout['current'] = $layout["fullsize"]; $layout['current']['main'] = "fullsize"; } return $layout; }
Cheers!
PeterAugust 7, 2014 at 7:22 pm #301279Thanks for this reply Peter.
I pasted the above code into my child functions.php file via the WP-admin panel and now the site and the WP admin panel will no longer load. The attached screen cap shows my functions.php code (which I managed to capture before completely loosing access to the site).
I even tried deleting this new code and resaving, but the site and dashboard will no longer load at all.
Any help?
site is blueoaks.cc.fqdns.net
- This reply was modified 10 years, 3 months ago by blueoakschurch.
August 8, 2014 at 2:18 am #301408Peter (or whoever responds), I was able to restore access to my site & admin panel by deleting the code you provided via dreamweaver/filezilla.
I am still interested in your solution (above) to my original question – could there perhaps be an error in the code you gave me? Or, perhaps I did something wrong in modifying the child theme functions.php file (please see the screen cap I provided above)? I’d like to try this again, as it sounds like the solution I’m looking for.
thanks
August 12, 2014 at 6:07 am #302994Hey!
Did you re-add the code? the single post view now displays fullwidth:
http://blueoaks.cc.fqdns.net/resources/sermons/stories-that-stick/the-mustard-seed/Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.