By Brandon Scivolette on Thursday, 14 April 2016
Posted in Technical Issues
Likes 0
Views 641
Votes 0
I have found that when I enable the header and description (Settings > Layout > Toolbar > General) that the default blog header and description show on the main blog frontpage as well as on every individual blog post view. This is, of course, redundant. To me it makes sense to show the main blog header and description on the blog landing page (frontpage) but not on the individual blog post view.

I found a reference to this issue already but it dates back to 2014. I'm wondering if the issue has since been addressed and I'm not finding the right settings? Or is the workaround described in the previous post the recommended action?

http://stackideas.com/forums/enable-blog-headers
Hey Brandon,

This is actually by default and it is the standard behavior to display the blog headers across the site regardless if you are on the entry or the listing view.

If you want to modify this, you could edit the theme file /components/com_easyblog/themes/wireframe/toolbar/default.php and locate the codes below:


<?php if ($heading || $this->config->get('layout_headers')) { ?>
<div class="eb-brand">
<?php if ($view == 'entry') { ?>
<h2 class="eb-brand-name reset-heading"><?php echo JText::_($title);?></h2>
<?php } ?>

<?php if ($view != 'entry') { ?>
<h1 class="eb-brand-name reset-heading"><?php echo JText::_($title);?></h1>
<?php } ?>

<?php if ($this->config->get('layout_header_description')) { ?>
<?php if ($view == 'teamblog' && JRequest::getVar('layout') == 'listings') { ?>
<?php if ($this->config->get('main_includeteamblogdescription')) { ?>
<div class="eb-brand-bio"><?php echo JText::_($desc);?></div>
<?php } ?>
<?php } else { ?>
<div class="eb-brand-bio"><?php echo JText::_($desc);?></div>
<?php } ?>
<?php } ?>

</div>
<?php } ?>


Replace it with,


<?php if ($view != 'entry') { ?>
<?php if ($heading || $this->config->get('layout_headers')) { ?>
<div class="eb-brand">
<?php if ($view == 'entry') { ?>
<h2 class="eb-brand-name reset-heading"><?php echo JText::_($title);?></h2>
<?php } ?>

<?php if ($view != 'entry') { ?>
<h1 class="eb-brand-name reset-heading"><?php echo JText::_($title);?></h1>
<?php } ?>

<?php if ($this->config->get('layout_header_description')) { ?>
<?php if ($view == 'teamblog' && JRequest::getVar('layout') == 'listings') { ?>
<?php if ($this->config->get('main_includeteamblogdescription')) { ?>
<div class="eb-brand-bio"><?php echo JText::_($desc);?></div>
<?php } ?>
<?php } else { ?>
<div class="eb-brand-bio"><?php echo JText::_($desc);?></div>
<?php } ?>
<?php } ?>

</div>
<?php } ?>
<?php } ?>
·
Thursday, 14 April 2016 01:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hmm, something is wrong. I get this error:


ERROR: 0
syntax error, unexpected '}', expecting end of file
·
Thursday, 14 April 2016 02:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Brandon,

I think you are copy / pasting it incorrectly. If you could provide me with the FTP, I'll get that fixed for you
·
Thursday, 14 April 2016 02:08
·
0 Likes
·
0 Votes
·
0 Comments
·
I guess that's possible. Unfortunately I don't have FTP access just yet, waiting for my senior developer to create a user on the server.
·
Thursday, 14 April 2016 02:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Nevermind, I got it. You were correct, I copy/pasted incorrectly

That worked. Thank you very much!
·
Thursday, 14 April 2016 02:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 14 April 2016 12:47
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post