templaza / astroid-framework

Powerful framework for designers and developers to create responsive, fast & robust Joomla based websites and templates.
https://astroidframe.work/
GNU General Public License v3.0
86 stars 15 forks source link

Change main image position #304

Open chupidos opened 1 year ago

chupidos commented 1 year ago

Hello everyone,

I am doing a complex migration from Joomla 3.10 with the K2 component to Joomla 4, without this component which is not yet supported in this version of Joomla.

With K2 the main image was inserted automatically after reading more of the text of the article but with the current template (tz_newspaper) I have not been able to modify the code to make this happen. The file that I think needs to be changed is in this path: /templates/tz_newspaper/html/com_content/article/

Could anyone help me to make the main image appear after the intro text and before the full text (after the read more)?

The test site is this: https://my-ebook.es/

Thank you so much,

pkEwando commented 1 year ago

Hello, youre right you have to do it with an override: For single Article edit this file html/com_content/article/default.php

For the blog view you have to edit this file \html\com_content\category\blog_item.php Greatings, Peter

Chacapamac commented 1 year ago

Just looking at the conversation to see if it’s solved. Good Day to All!

chupidos commented 1 year ago

Hello, youre right you have to do it with an override: For single Article edit this file html/com_content/article/default.php

For the blog view you have to edit this file \html\com_content\category\blog_item.php Greatings, Peter

If I already know that, what I don't know is how to move the image from place

Joomlaplates commented 1 year ago

Hello, open the files and move the image DIV part to the top or bottom. Or move the read more part to the top. A bit HTML knowledge would be good.