WordPress.org

Ready to get started?Download WordPress

Forums

Montezuma
How change the dual color in the Site Title? (11 posts)

  1. ljudkonsulterna
    Member
    Posted 1 year ago #

    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!

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  3. ljudkonsulterna
    Member
    Posted 1 year ago #

    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?

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Can you link the site in question?

  5. ljudkonsulterna
    Member
    Posted 1 year ago #

    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/

  6. dyrer
    Member
    Posted 1 year ago #

    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

  7. ljudkonsulterna
    Member
    Posted 1 year ago #

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

  8. goater
    Member
    Posted 1 year ago #

    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;

  9. Daivanas
    Member
    Posted 1 year ago #

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

  10. goater
    Member
    Posted 1 year ago #

    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.

  11. Daivanas
    Member
    Posted 1 year ago #

    yes i'm interested please explain this method

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.