Portfolio theme

Post Reply
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

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.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

Yes!
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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 ?>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

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!
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

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.
Post Reply