Featured Articles css

GK User
Fri Nov 22, 2013 3:38 pm
Hello,

How can i display article on Featured Articles like Category Blog.
http://horeca.ro/2013/ - featured article
http://horeca.ro/2013/index.php?option= ... Itemid=395 - Category blog.

thank you
User avatar
Senior Boarder

teitbite
Sat Nov 23, 2013 7:37 pm
Hi

Please go to /html/com_content folder and try copy blog_item.php from /category to /featured and replace to the one You have there. I'm not sure if it will be enought, but without ftp access and making some tests that's a closest tip i can give.
User avatar
Moderator

GK User
Mon Nov 25, 2013 12:44 pm
thank you,

i copy the content from blog_item.php and i add to override.css:


.blog-featured .itemDateCreated {
border-right: 1px solid #E5E5E5;
color: #B3B6B7;
float: left;
font-size: 11px;
margin: 0;
min-height: 80px;
padding: 3px;
position: absolute;
width: 75px;
}

.blog-featured .itemToolbar {
margin: 0 0 25px 112px;
}
.blog-featured .itemToolbar ul li {
border-left: none;
list-style: none outside none;
margin-left: 12px;
padding: 0;
}
.blog-featured .itemToolbar h2 {
line-height: 1.05;
margin-bottom: 16px;
color: #333333;
font-size: 18px;
font-weight: bold;
}

thank you!
User avatar
Senior Boarder

teitbite
Tue Nov 26, 2013 1:22 am
Hi

Ok. That's the perfect solution. I'm glad it's working.
User avatar
Moderator

GK User
Mon Feb 17, 2014 10:49 pm
May I ask...

if the same Layout would work in the GK News 2 template as well ???
User avatar
Junior Boarder

teitbite
Wed Feb 19, 2014 9:27 pm
Hi

I do not know. There may be some overrides from template already. Best way is to add the code and check.
User avatar
Moderator

GK User
Thu Feb 20, 2014 4:50 pm
Strange. But nothing has changed. I used the override.css via FTP.
At the moment the main articles look very boring on the site.
Could it be that renaming the "_com content" directory within the template causes the problem?
I had to do it because I still have the "two articles problem" and nobody can give me a proper "default.php" for the news2 skin :roll:
User avatar
Junior Boarder

teitbite
Fri Feb 21, 2014 9:54 pm
Hi

Renaming folder to _com_content will affect style, so please just rename it back for check but I think Your issue that style is not working may be not enabled override in template settings or wrong codding of this file. Please show me direct url to the page You are trying to use new style.
User avatar
Moderator

GK User
Sat Feb 22, 2014 6:12 pm
Thanks for the reply.

The site is: pugis.aragri.de

I deactivated all caches and enabled override.css Is this correct, so you can check the code `?
I ve written the code from the top into the override.css of the template.

I would be very happy if I could manage to get the featured articles on the mainpage a little bit more attractive.
If you have any tips (or examples) on that topic, I would be very glad.

Thank you in advance.
User avatar
Junior Boarder

teitbite
Tue Feb 25, 2014 9:31 pm
Hi

I can only see 3 clases in override.css and all for elements You are not using. If that's all than rest is probably using the default layout for elements. This means that it will be hard to copy that without breaking the site. I think easier would be to just create new style. Unfortunately I connot help huch with this since it's a customisation request :(
User avatar
Moderator

GK User
Wed Feb 26, 2014 9:02 am
Thank you for the answer.
Could you just give me a little hint (link) where to start with the "class".
Would it be the css template or css layout or via css override or php files of com_article / blog_item ?
Is there any documentation in your database which might be helpful?
Kind regards and thanks in advance.
User avatar
Junior Boarder

teitbite
Thu Feb 27, 2014 8:34 pm
Hi

We do not support such modifications, so there is no documentation about this. But best way is to use firebug. In firebug You can select element after element and on the right side of firebug panel You will see css code responsible for the look of this element. Try copy a class after class to override.css (override needs to be enabled in template settings).
User avatar
Moderator


cron