-
AuthorPosts
-
March 6, 2011 at 6:41 pm #161094
I would like to load an article in the User 1 Position. I have tried using Custom HTML to insert the desired text, however the text is always centered as opposed to left hand aligned.
How can I get this text to be left hand aligned? Or is there a better way to accomplish what I want (specific article in User1 module)?
Thanks.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 6, 2011 at 6:42 pm #379925Please post a link you your page so we can see the problem for ourselves.
March 6, 2011 at 8:04 pm #379929Here you go. http://conciergefinancialoffice.com/aboutus
I would like the text in the module to be left hand aligned. Is there a way (other than Custom HTML) to load a specific article in the module?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 6, 2011 at 9:14 pm #379932A custom html module is the best way here. In this case the module in question is getting the text-align:center from the folowing code in template.css at line 525
#ja-topsl .module div div div {
border:0 none;
padding:0;
text-align:center;}
You could either change that to
#ja-topsl .module div div div {
border:0 none;
padding:0;
text-align:left;which could cause some unwanted results.
Personally I would simply create a custom module suffix containing that code and add it in the template manager.
In the module manager add in the Module Suffix box .lefttext
At the bottom of template.css add the following code
.lefttext {text-align:left !important;}
March 7, 2011 at 1:04 am #379949Thank you for your help. I have added the following code to the template.css file as you suggest
.lefttext {text-align:left !important;}
But I am unclear on how to get this custom module to appear in the User1 position?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 7, 2011 at 1:38 am #379950The same way you normally would with Joomla. You just apply the suffix in the module manager.
If you PM me an admin login I will set it up for you.
March 7, 2011 at 3:45 am #379974Thank you. For my own learning I would like to figure out how to do this. Is there any reading I can do regarding this?
I’ve added custom module positions to be inserted in an artilcles before (ie. {loadposition module}. Am I trying to load this custom module into the User1 position (Custom HTML) via {loadposition .lefttext} in the same fashion?
If so, the only trouble is that I have several different articles that I want displayed in modules. Would I have to create a custom module name for each article? If so, would I simply add the following code to the template.css for each instance?
.name {text-align:left !important;}
Am I way off or on the right track? Thanks for your continued help.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 7, 2011 at 7:26 am #380017Are you trying to put a module in an article or an article in a module? {loadposition} is used to put a module in an article which is something ver different from what I thought you were trying to do.
March 7, 2011 at 3:10 pm #380086Yes, I am trying to put an article in a module. Howver, I have a different article for each page of the site.
-
AuthorPosts
This topic contains 11 replies, has 2 voices, and was last updated by dmason 13 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum