Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • billrust Friend
    #195770

    I 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,
    Bill

    edit – attaching an image of what I am trying to achieve with the text.


    1. employee-header
    chavan Friend
    #526681

    can you please post your site Url and the admin details in PM. so I could check it.

    cssyeah Moderator
    #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.

Viewing 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