Hi, I found "bug" that is doing one blank space character on header and dates in Joomla! 3.8.2. So you are not able to center headers properly, because of that blank space character on the end. Picture below
for example: com_content/views/featured/tmpl/default.php, line 23
in this code below is space character after ...page_heading')); ?>
Without the end space character
h1,h2 and date in article have last character as space, as picture shows
Joomla 3.8.2, PHP 5.6
Labels |
Added:
?
|
Whatever is causing the problem is not the code that you highlighted as that code is perfectly correct.
The code has "space" on the end of the line, one character. The "space" character is causing it.
If you look at the source code here there is no space
Notepad++ show there is space, and test site is showing spaces after h1,h2 and date. So problem is where you think?
Browsers will render new lines as whitespace for inline (maybe inline-block too) elements. They get ignored for block elements. So firstly ensure you're <h1>
hasn't been given the CSS property display: inline-block;
.
Else you can simply remove the whitespace yourself:
<h1><?php echo $this->escape($this->params->get('page_heading')); ?></h1>
or:
<?php echo '<h1>' . $this->escape($this->params->get('page_heading')) . '</h1>'; ?>
Category | ⇒ | com_content |
Status | New | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-12-01 09:08:39 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/18930
closed as no Core-Issue.
I am assuming you meant to attach a picture?