-
AuthorPosts
-
ger12 Friend
ger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
September 3, 2014 at 9:57 pm #201045Hi, I have some question about blog menu. :-[
1- This is date published, how can display “created” here?
2- How can I translate this words?
3- Why look diferent? I would like to have like the DEMO, I just change the category!
This the demo look
Moreover
Into the blog I see that:
Cant see the category, because is WHITE. 😀
Put the cursor on it and appear 😮
How can I display the category in BLACK or another color but not WHITE?
Thank in advance.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 5, 2014 at 2:23 am #548371You can find my answer with your request
#1: Change published to created
Open templates/ja_nuevo/html/layouts/joomla/content/info_block/block.php file
find and change
<?php if ($displayData['params']->get('show_publish_date')) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.publish_date', $displayData); ?>
<?php endif; ?>
to
<?php if ($displayData['params']->get('show_create_date')) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.create_date', $displayData); ?>
<?php endif; ?>
+ Create templates/ja_nuevo/html/layouts/joomla/content/info_block/create_date.php file and add new code below
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/defined('JPATH_BASE') or die;
?>
<dd class="created hasTooltip" title="<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', ''); ?>">
<time class="month" datetime="<?php echo JHtml::_('date', $displayData['item']->created, 'c'); ?>" itemprop="dateCreated">
<?php echo JHtml::_('date', $displayData['item']->created, JText::_('TPL_MONTH_FORMAT_LC3')); ?>
</time><time class="date" datetime="<?php echo JHtml::_('date', $displayData['item']->created, 'c'); ?>" itemprop="dateCreated">
<?php echo JHtml::_('date', $displayData['item']->created, JText::_('TPL_DATE_FORMAT_LC3')); ?>
</time>
</dd>
+ Create templates/ja_nuevo/css/custom.css file and add new rule
.created {
background: #73bfe6;
border-radius: 50%;
color: #ffffff;
height: 60px;
padding: 6px;
text-align: center;
width: 60px;
position: absolute;
left: 12px;
top: 12px;
} @media screen and (max-width: 480px) {
.created {
border-radius: 0;
}
}
.created .date {
display: block;
font-size: 24px;
font-weight: 700;
line-height: 1;
} @media (min-width: 939px) {
.article-info .parent-category-name {
display: inline-block;
}
.article-info .created {
position: static;
}
.article-aside .btn-group {
position: relative;
top: auto;
right: auto;
}
}
#2: Translate text on this
+ Open language/en-GB/en-GB.tpl_ja_nuevo.ini file and change text with my red mark
TPL_WRITTEN_BY ="Written by"
TPL_CATEGORY_NAME ="Published in"
TPL_JACOMMENT_LABEL ="Comment"+ Open language/en-GB/en-GB.com_content.ini file and change text with my red mark
COM_CONTENT_PARENT="Parent Category: %s"
COM_CONTENT_CREATED_DATE_ON="Created: %s"
COM_CONTENT_WRITTEN_BY="Written by %s"#3: About the config from Articles Category module you can reference the guide here and find “5. Articles Category”
Other request to change text color
+ Open templates/ja_nuevo/css/custom.css file, add new rule and change color #ffffff to other
.createdby span, .parent-category-name span {
font-weight: 700;
color: #ffffff ;
}.category-name span {
color: #ffffff ;
font-weight: 700;
}.intro-image-wrap .article-aside .jacomment-count a {
font-weight: 700;
color: #ffffff ;
}
1 user says Thank You to Ninja Lead for this useful post
ger12 Friendger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
September 5, 2014 at 9:54 pm #548546<em>@Ninja Lead 444355 wrote:</em><blockquote>You can find my answer with your request
#1: Change published to created
Open templates/ja_nuevo/html/layouts/joomla/content/info_block/block.php file
find and change
<?php if ($displayData['params']->get('show_publish_date')) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.publish_date', $displayData); ?>
<?php endif; ?>
to
<?php if ($displayData['params']->get('show_create_date')) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.create_date', $displayData); ?>
<?php endif; ?>
+ Create templates/ja_nuevo/html/layouts/joomla/content/info_block/create_date.php file and add new code below
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/defined('JPATH_BASE') or die;
?>
<dd class="created hasTooltip" title="<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', ''); ?>">
<time class="month" datetime="<?php echo JHtml::_('date', $displayData['item']->created, 'c'); ?>" itemprop="dateCreated">
<?php echo JHtml::_('date', $displayData['item']->created, JText::_('TPL_MONTH_FORMAT_LC3')); ?>
</time><time class="date" datetime="<?php echo JHtml::_('date', $displayData['item']->created, 'c'); ?>" itemprop="dateCreated">
<?php echo JHtml::_('date', $displayData['item']->created, JText::_('TPL_DATE_FORMAT_LC3')); ?>
</time>
</dd>
+ Create templates/ja_nuevo/css/custom.css file and add new rule
.created {
background: #73bfe6;
border-radius: 50%;
color: #ffffff;
height: 60px;
padding: 6px;
text-align: center;
width: 60px;
position: absolute;
left: 12px;
top: 12px;
} @media screen and (max-width: 480px) {
.created {
border-radius: 0;
}
}
.created .date {
display: block;
font-size: 24px;
font-weight: 700;
line-height: 1;
} @media (min-width: 939px) {
.article-info .parent-category-name {
display: inline-block;
}
.article-info .created {
position: static;
}
.article-aside .btn-group {
position: relative;
top: auto;
right: auto;
}
}
</blockquote>
Thank for your help, I make the change you said but now show two circles.
And I would like to have like DEMO
Wich part i need modificate to do that?
Thanks in advance
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 8, 2014 at 9:41 am #548695So that I can take a look and try to assist, please provide the url of the site you’re working on
ger12 Friendger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 9, 2014 at 3:17 am #548782<em>@ger12 444861 wrote:</em><blockquote>HI, 🙂
Here is the URL
Thanks in advance.</blockquote>
This will help you to fix this bug
Open templates/ja_nuevo/html/layouts/joomla/content/info_block/block.php file
Change
<?php if ($displayData['params']->get('show_create_date')) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.create_date', $displayData); ?>
<?php endif; ?><?php if ($displayData['params']->get('show_author') && !empty($displayData['item']->author )) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.author', $displayData); ?>
<?php endif; ?>
To
<?php if ($displayData['params']->get('show_create_date')) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.create_date_custom', $displayData); ?>
<?php endif; ?><?php if ($displayData['params']->get('show_author') && !empty($displayData['item']->author )) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.author', $displayData); ?>
<?php endif; ?>
+ Rename templates/ja_nuevo/html/layouts/joomla/content/info_block/create_date.php file to templates/ja_nuevo/html/layouts/joomla/content/info_block/create_date_custom.php file
Let me know if it helps
1 user says Thank You to Ninja Lead for this useful post
ger12 Friendger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
September 10, 2014 at 3:18 am #548931Sorry, but not work.
I did all the change you said but didnt work.
I try to revert all over again but dont look like the demo again.
Could yo please help me to get back or make the right changes.
Now I dont care published or created, please help me.
I Would like to have like this: (published or created – better created but if it is not possible published like the demo)
Now looks like THIS and looks horrible.
Thanks in advance.
PD: I swear I did all the changes you said body, but dont work at all.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 10, 2014 at 7:17 am #548965@ger12: Don’t worry about this, I just helped you to fix the problem directly on your site. For now you see it’s working fine with Blog and detail page.
-
AuthorPosts
Viewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by ger12 10 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum