-
AuthorPosts
-
billrust Friend
billrust
- Join date:
- March 2011
- Posts:
- 121
- Downloads:
- 35
- Uploads:
- 13
- Thanks:
- 15
- Thanked:
- 3 times in 1 posts
March 14, 2014 at 12:45 am #195770I am trying to change a span style using a page class suffix.
I have an external page with text at the top (to the right of the logo) that when a user is not logged in, it stays this grey.
But when they log in, the background changes to red, and I need to make that same text white.
I have no problems with other classes within my page class suffix, just with trying to change this span class.
What is the proper way to do this?
Thanks,
Billedit – attaching an image of what I am trying to achieve with the text.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
March 14, 2014 at 6:10 am #526681can you please post your site Url and the admin details in PM. so I could check it.
cssyeah Moderatorcssyeah
- Join date:
- June 2006
- Posts:
- 653
- Downloads:
- 73
- Uploads:
- 15
- Thanked:
- 121 times in 81 posts
March 14, 2014 at 6:49 am #526685@ billrust,
If you are using T3 framework, please follow steps below to add a class to the header of your site.
Step 1: Open the header.php file in the tpls folder.
Step 2: Add the custom php code, please see the red lines.
...
$logosize = 'col-sm-12';
if ($headright = $this->countModules('head-search or languageswitcherload')) {
$logosize = 'col-sm-8';
}$user = JFactory::getUser();
?><!-- HEADER -->
<header id="t3-header" class="container t3-header<?php if(!$user->guest) echo " user"; ?>">
<div class="row">
...
Step 3: Add style for new class.
Hope this helps.
AuthorPostsViewing 3 posts - 1 through 3 (of 3 total)This topic contains 3 replies, has 3 voices, and was last updated by cssyeah 10 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Possible to change span class with page class suffix?
Viewing 3 posts - 1 through 3 (of 3 total)