- Posts: 21
- Thank you received: 0
Line length and Editing Labels
-
hayatt2000
Active member -
Topic Author
- Member
-
Less
More
4 days 18 hours ago #52003
by hayatt2000
Line length and Editing Labels was created by hayatt2000
Hello,
I'd like to edit 2 things in the blog view:
1. As you can see here, the line that devides articles is sometimes long, and sometimes short. It looks like it depends on the content of the post.
That does not look nice. I want to have this consistent. A long line separating posts always.
Ho do I do that?
2. Under the post title (either front page view or blog view), shows the author name, date, view ...etc.
I'm fine with these, I want them to appear.
But I don't want the labels to show.
For examples, I don't want the word "by" Before the author name. Or the word "published on" before the date.
What should I edit?
Thanks.
I'd like to edit 2 things in the blog view:
1. As you can see here, the line that devides articles is sometimes long, and sometimes short. It looks like it depends on the content of the post.
That does not look nice. I want to have this consistent. A long line separating posts always.
Ho do I do that?
2. Under the post title (either front page view or blog view), shows the author name, date, view ...etc.
I'm fine with these, I want them to appear.
But I don't want the labels to show.
For examples, I don't want the word "by" Before the author name. Or the word "published on" before the date.
What should I edit?
Thanks.
Please Log in to join the conversation.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6886
- Thank you received: 735
4 days 1 hour ago #52005
by milos
Replied by milos on topic Line length and Editing Labels
Hello,
Please send the exact link on your website where I can see the blog.
Regards,
Milos
Please send the exact link on your website where I can see the blog.
Regards,
Milos
Please Log in to join the conversation.
-
hayatt2000
Active member -
Topic Author
- Member
-
Less
More
- Posts: 21
- Thank you received: 0
4 days 43 minutes ago #52006
by hayatt2000
Replied by hayatt2000 on topic Line length and Editing Labels
Please Log in to join the conversation.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6886
- Thank you received: 735
3 days 22 hours ago #52008
by milos
Replied by milos on topic Line length and Editing Labels
Hello,
Please edit the file /media/templates/site/museum/css/custom.css and around line 350 find this:
Change it to this if you want to extend the line width:
Or change it to this if you want to get rid of this line:
Regards,
Milos
Please edit the file /media/templates/site/museum/css/custom.css and around line 350 find this:
Code:
.blog-items .blog-item {
border-bottom: 1px solid var(--sparkycolor1);
padding: 30px 0 15px;
}
Change it to this if you want to extend the line width:
Code:
.blog-items .blog-item {
border-bottom: 1px solid var(--sparkycolor1);
padding: 30px 0 15px;
width: 100%;
}
Or change it to this if you want to get rid of this line:
Code:
.blog-items .blog-item {
padding: 30px 0 15px;
}
Regards,
Milos
The following user(s) said Thank You: hayatt2000
Please Log in to join the conversation.
-
hayatt2000
Active member -
Topic Author
- Member
-
Less
More
- Posts: 21
- Thank you received: 0
2 days 18 hours ago #52023
by hayatt2000
Replied by hayatt2000 on topic Line length and Editing Labels
Thank you. It worked.
What about question 2?
What about question 2?
Please Log in to join the conversation.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6886
- Thank you received: 735
1 day 22 hours ago #52025
by milos
Replied by milos on topic Line length and Editing Labels
Hello,
You must create a template override for this. For example, for the blog page demo.hotjoomlatemplates.com/museum/index.php/blog you should copy the file /layouts/joomla/content/info_block/publish_date.php to the folder /templates/museum/html/layouts/joomla/content/info_block/publish_date.php (create all these folders because they don't exist).
Then, on the copied file, change this line:
to this:
This is how you create template overrides for other parts of the info block (author.php, category.php, etc...).
Regards,
Milos
You must create a template override for this. For example, for the blog page demo.hotjoomlatemplates.com/museum/index.php/blog you should copy the file /layouts/joomla/content/info_block/publish_date.php to the folder /templates/museum/html/layouts/joomla/content/info_block/publish_date.php (create all these folders because they don't exist).
Then, on the copied file, change this line:
Code:
<?php echo Text::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', HTMLHelper::_('date', $displayData['item']->publish_up, Text::_('DATE_FORMAT_LC3'))); ?>
Code:
<?php echo Text::sprintf(HTMLHelper::_('date', $displayData['item']->publish_up, Text::_('DATE_FORMAT_LC3'))); ?>
This is how you create template overrides for other parts of the info block (author.php, category.php, etc...).
Regards,
Milos
The following user(s) said Thank You: hayatt2000
Please Log in to join the conversation.
Time to create page: 0.118 seconds