i have integrate one html theme in my elgg, in this theme i write blog post code to get all blog posts in the htlm part. but that not display in proper fromat,...
this code is write in my C:\xampp2\htdocs\elgg2\mod\ab_theme\index.php file.
what is wrong in my code ?
<div class="col-sm-6 col-lg-6 col-md-6 col-xs-12">
<div class="feedsection">
<div class="col-sm-9 col-lg-6 col-md-6 col-xs-9">
<?php
// make sure only logged in users can see this page
// gatekeeper();
// $user = elgg_get_logged_in_user_entity();
// $icon = elgg_view_entity_icon($user, 'large', array('use_hover' => false));
echo elgg_list_entities([
'type' => 'object',
'subtype' => 'blog',
'limit' => 3, // Latest 3 blog
'full_view' => false,
'list_type_toggle' => false,
'pagination' => false,
]);
?>
</div>
</div>
</div>
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Rushikesh Solanki@Rushikesh
Rushikesh Solanki - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Rushikesh Solanki@Rushikesh
Rushikesh Solanki - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Rushikesh Solanki@Rushikesh
Rushikesh Solanki - 0 likes
You must log in to post replies.Did you load core CSS?
where to load core css?
in my theme i have to load core css?
How to load core css in cutom theme?
I don't know what you did, so I can't tell you. Did you overwrite page shell? Did you replace HTML head? Use core elgg_view_page() and elgg_load_css()
in my theme i have display the blog post...
but blog post not displays the proper format.
C:\xampp2\htdocs\elgg2\mod\ab_theme\index.php file.
as above your answere. you are right,my core css has not call, elgg.css are not call..
i have try in start.php, but it was not call??
then what is the way to call css.
i use this code to call css.
elgg_extend_view('elgg.css', 'ab_theme/css');
elgg_extend_view('css/elgg', 'ab_theme/css');
elgg_extend_view('elgg.css');
all code are not work.. in index.php file
What's in your index.php? As I said, use elgg_view_page().
in index.php has a totaly html code that display home page. in my theme.