Page 1 of 1

Portfolio theme

Posted: Sun Feb 14, 2021 6:31 am
by lodria
Hi!

I’m creating new content and adding a cover image, so far ok. However, I want the image not to appear when I open new content. How could this be set?
My problem is that the cover image compresses the current content.

Re: Portfolio theme

Posted: Sun Feb 14, 2021 5:55 pm
by Edi
lodria wrote: Sun Feb 14, 2021 6:31 am However, I want the image not to appear when I open new content.
Do you want, that the cover image is shown only on the home page or pages, not on the page with the content?

Re: Portfolio theme

Posted: Sun Feb 14, 2021 5:57 pm
by lodria
Yes!

Re: Portfolio theme

Posted: Sun Feb 14, 2021 6:46 pm
by Edi
You can remove the following from the file page.php in the directory /bl-themes/portfolio/php (line 22):

Code: Select all

<!-- Cover image -->   
<?php if ($page->coverImage()): ?>
<img class="alignright" src="<?php echo $page->coverImage(); ?>">
<?php endif ?>

Re: Portfolio theme

Posted: Sun Feb 14, 2021 7:46 pm
by lodria
Thank you very much Edi!

It saved me a lot of time, I’ll show you soon why I wanted to achieve this.
Thanks again for the solution!

Re: Portfolio theme

Posted: Mon Feb 15, 2021 4:01 pm
by lodria
That's why I asked for help:
http://apcool.nhely.hu/mobiblud/
If anyone is interested I will be happy to share the associated files for you to try.