[SOLVED]Modifying Massively-2.1 - Adding an image in the index.php file

Post Reply
lesmegeres
Sr. Bludit
Posts: 30
Joined: Wed Jul 19, 2023 6:51 pm
Location: Paris - France
Has thanked: 3 times
Been thanked: 2 times
Contact:

Hi,

I would like to add the logo of my company to replace the circle and down arrow in the homepage to scroll down.

The main problem I encountered is :

1) specifying the absolute path to the logo in the <img src=""> would result in a 302 Found message without any display. I do not know which php variable I could use to fill in the <img src=""> with.

I am trying to modify line 40 of the index.php file in massively-2.1 directory.

Standard line is :

Code: Select all

<li><a href="#header" class="button icon solo fa-arrow-down scrolly">Continue></a></li>
I need to do someting like :

Code: Select all

<li><a href="#header" class="button icon solo fa-arrow-down scrolly"><img src="<?php echo (php variable to my logo)?>" width="32px" alt="les deux mégères"</a></li>
Thanks for your input and advice.
Last edited by lesmegeres on Sat Sep 09, 2023 8:44 am, edited 1 time in total.
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:

lesmegeres wrote: Thu Aug 03, 2023 12:10 pm specifying the absolute path to the logo in the <img src=""> would result in a 302 Found message without any display.
Where have you uploaded your logo?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
lesmegeres
Sr. Bludit
Posts: 30
Joined: Wed Jul 19, 2023 6:51 pm
Location: Paris - France
Has thanked: 3 times
Been thanked: 2 times
Contact:

Hello and thanks for your reply,

I was out for some days. I could finally make the changes I wanted. I loaded the logo in the images/ folder of the theme 'massively-2.1'.

I commented line40 and added the following line :

Code: Select all

<li><a href="#header" class="scrolly"><img src="bl-themes/massively-2.1/images/logoLMDL_blanc.png" alt="LEs deux mégères" width="128px"></a></li>
Let me know if I could do better by using some <?php ?> with global variables ?

Thanks again.
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:

I would do it the same way or upload the image to the directory /bl-content.

If you want use a defined path you can find the definitions at

https://github.com/bludit/bludit/blob/v ... t/init.php
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply