Support » Theme: Montezuma » How change the dual color in the Site Title?

  • The tag <span class="firstpart"> dont seem to work in the field for the Site Title. how do i do to tell WP wich word that are going to be colored at that place?

    Thanxs in advance!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    What CSS doesn’t work in reference to that span tag?

    it is not hte css that is not working. The problem seems to be to put that html tag in form for the Site Title.

    I am trying to control wich part of the title word that should have the color.

    Any tips?

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Can you link the site in question?

    The word i want to control is “Ljudkonsulterna” where “Ljud” should be black and “konsulterna” should be blue.

    The website is here: http://www.ljudkonsulterna.se/

    for Ljud change
    #sitetitle a .firstpart {
    color: #000000;
    }

    The second part derives from a:link so or you add $sitetitle a {
    color: #xxxxxx }
    or change a:link color

    i feel a bit stupid, but where should i place that code?
    I tried a couple of css but didnt get it to work.

    A (very hard-coded) solution is to edit the “SPLIT TITLES” section in the file wp-content/uploads/montezuma/javascript.js

    In your case, after the line: newstr = '<span class="firstpart">';
    add an extra line: if (str == 'Ljudkonsulterna') halfLength = 4;

    This hard-coded method works only for a short time. Maybe there is other solutions?

    Indeed, was long time ago and I forgot to update this solution. You have to make the modification I’ve described in the file wp-content/themes/montezuma/includes/get_javascript.php instead.

    I implemented a solution which allows me to manage the “dual color splits” from within the dashboard, but have no time to describe it. Let me know if you are (or someone is) interested.

    yes i’m interested please explain this method

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How change the dual color in the Site Title?’ is closed to new replies.