Width Of Article Il Loqo Template - Question | JoomShaper

Width Of Article Il Loqo Template

TC

thomas cassen

Template 8 months ago

how to change width of article body ? i need more width to fit well with my SmartForm form but i don't know how to proceed. could u help ? Thx

0
9 Answers
Pavel
Pavel
Accepted Answer
8 months ago #184797

is it better to implement child theme

Helix does not have this option. You can only create a copy of the template, not a child template. However, if you do not need to make global changes to index.php, you should not resort to this option, as your copy will not receive updates.

Simply create a custom.css file and write your code there, overriding the template styles.

it does. i don't know why and how but it does :-)

Going back to this, it could have happened for only two reasons:

  1. Evil Voodoo witchcraft.
  2. A syntax error on your part. Check all your CSS and make sure there are no mistakes, missing brackets, or similar issues.

In the case of CSS, restoring a backup is unnecessary. If something went wrong due to your CSS, simply delete it.

0
Pavel
Pavel
Accepted Answer
8 months ago #184561

Hi.

Add this code to custom.css file and set max-width value as you like

.article-details div[itemprop="articleBody"] {
    max-width: 785px; /* change to your own value*/
}
0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 8 months ago #184565

Hello thomas cassen,

Thank you for reaching out to our technical support forum. I’m sorry to hear about the trouble you’re experiencing. Rest assured, I will look into this issue for you and work to resolve it as quickly as possible.

You can follow Pavel's suggestion. I have modified his Custom CSS a little. Please use this CSS to

Template Options -> Custom Code -> Custom CSS

.article-details div[itemprop="articleBody"] {
    max-width: 1320px !important;
}

Best regards

0
TC
thomas cassen
Accepted Answer
8 months ago #184680

it crashed my template menus and parameters (menu disapear and colors gone default). had to restore a backup. Set it in template options - custom code - Custom CSS. Revert back without the code doesn't work. i love akeeba backup

0
Pavel
Pavel
Accepted Answer
8 months ago #184717

This couldn’t have broken what you’re talking about. Your issue was most likely related to the Joomla update, not this code.

0
TC
thomas cassen
Accepted Answer
8 months ago #184728

it does. i don't know why and how but it does :-)

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 8 months ago #184786

Just checking in to see if you had any feedback regarding the solution provided. If the answer resolved your query, you can mark it as accepted to help close the post and guide others with similar questions. There is a button to accept answers after each comment.

If there's anything else you need assistance with, feel free to let us know!

0
TC
thomas cassen
Accepted Answer
8 months ago #184788

Hello, yes i have : is it better to implement child theme and manage it's hown css file ? if yes, do you have a guide for that ? Thx

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 8 months ago #184793

You can have a separate template for Blog and articles. It is up to you. Or you can use the above Custom Code on the main template. It will only be applicable to article pages. No other page will be affected.

0