-
AuthorPosts
-
August 14, 2011 at 7:53 pm #167406
I’m just getting started with joomla (and unfortunately have an insanely short timeframe to get done what is needed :(). I want to put a logo next to the logo-text div, rather than having to choose between the two. I can do this by editing the template’s header.php file. What I’ve tried that would result in my copying or cloning files to get this done has failed, resulting either in ignoring my changes, or losing necessary formatting (with the header bar reduced to a very thin sliver).
I am wondering if there is an easy way to override blocks/header.php in JA Social, so that I can put my mod in its own file, and then just tell the template to use my php file instead of blocks/header.php.
Trimud FriendTrimud
- Join date:
- May 2006
- Posts:
- 245
- Downloads:
- 36
- Uploads:
- 11
- Thanks:
- 8
- Thanked:
- 55 times in 45 posts
August 15, 2011 at 7:07 am #406284Hi bicker,
I have created custom theme that overrides header.php file.
Please download it here: 15030After this go to Your template -> Themes tab and under “UPLOAD PACKAGE FILE” select custom_header.zip and upload it.
Than go to Profiles tab and under “Theme Settings” click edit icon, select Custom_Header and click Apply.
Than click Apply in templates button and You are finished with this.Now in order to make changes to header.php use Your FTP client and go to templates/ja_social/local/themes/Custom_Header/blocks/header.php
CSS changes should be made in templates/ja_social/local/themes/Custom_Header/blocks/css/template.css
Best Regards
1 user says Thank You to Trimud for this useful post
August 16, 2011 at 10:43 am #406512Thank you so much for the reply. To be sure I understand, could you please confirm if my understanding is correct? If, let’s say, I just use the built-in theme “green-color”. Does that mean that I can override any of the php files in …templates/ja_social/blocks by putting a copy into …templates/ja_social/local/themes/green-color/blocks ? (The specifics of where to put what files to get what kind of overriding behavior is not clear in any of the documentation I’ve managed to read and understand, so far.)
Updated: I just did that, and it isn’t working. :confused:
Updated again: Okay, I think I’m getting it, but only through trial-and-error: The documentation is very inadequate in this regard. It seems that only local themes can be overridden.
One other thing that is not clear in the documentation: It seems that when you copy a style, you are copying only the association of a style name and its page assignments to a default profile (the left side of the page). The profiles are not copied… there doesn’t appear to be an explicit manager for profiles. If you change a profile in one style, you’re changing it in copies of the style.
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by bicker 13 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum