Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

[SOLVED] published time position
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [SOLVED] published time position

[SOLVED] published time position 10 years, 7 months ago #12533

how i can change published time position in article to normal position?
The topic has been locked.

Re: published time position 10 years, 7 months ago #12575

Dear Naeem Almhdy,

Please open the template.css files on folder: yoursite\templates\sj_health\css, find and delete the code:

div.item-page .published{ 
		position: absolute; top:10px; left:-45px;
		background:url(../images/bg_date.png) no-repeat right top; 
		color:#fff; width:41px; height:50px; text-align:right; padding-right:5px;
}
div.item-page .published .d_day{ font-size:128%; border-bottom:2px solid #86d1ed;margin-bottom: 2px;display: inline-block;}
	div.item-page .published .d_month{display:block; margin-left:60%; text-align:center; line-height:12px;}

	div.item-page .published:hover{ background-position:right bottom;}
	div.item-page .published:hover .d_day{border-color: #EE8A9E;}


Then open the default.php files on folder: yoursite\templates\sj_health\html\com_content\article, find and delete the code:

<dd class="published">
			<?php //echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE', JHTML::_('date',$this->item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?>
			
				<?php 
				 $full_date = JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC4'));					
				 $d_month = substr($full_date,5,2);
				 $d_day = substr($full_date,8,2);
				?>
				<span class="d_day"><?php echo $d_day;?></span>						
				<span class="d_month"><?php echo $d_month; ?></span>
			
			</dd>


replace:

<dd class="published">
			<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC2')));?>
</dd>


Thanks!




Thanks!
The topic has been locked.

Re: published time position 10 years, 7 months ago #12577

thanks for your help!
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.22 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes