• Resolved charlieusa

    (@charlieusa)


    Unable to save changes to free virtue theme Version: 2.8.4 (anywhere in theme options) A search of this support site, suggested a possible error with custom CSS.

    Which lead to finding:
    The following lines, when removed from the Custom CSS allowed the theme to save correctly. (Note: these lines have worked for years, not sure when they started causing an issue)

    /* drop down menu settings */
    #nav-second ul.sf-menu ul li a {
    font-size: 14px;
    font-family: lato;
    /* color: #24a6e2;                       #24a6e2;  blue */
    color: #b49d5a;
    background: #000000;           /*   black  */
    font-weight: 700;
    font-style: normal;
    }
    
    #nav-second ul.sf-menu ul li a:hover {
    /*color: #b49d5a; */
    color: #fff;                                         /* #b49d5a;  yellow */
    }
    
    /* drop down menu  border settings */
    .sf-menu ul {
    border-left: #000;
    border-right: #000;
    border-top: #000;
    
    }

    Any suggestions as to what could be causing the error.. or an alternative.

    Thanks for a great theme and support !

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This topic was modified 7 years, 3 months ago by bdbrown.
    • This topic was modified 7 years, 3 months ago by bdbrown.
    • This topic was modified 7 years, 3 months ago by bdbrown.
Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter charlieusa

    (@charlieusa)

    Note.. your parsing removed the required extra spacing in the above explanation, rendering it confusing. Second attempt:

    ———————————————————

    Hi Ben

    Thank you so much for your insightful troubleshooting..

    Your suggestion to minify the CSS code worked.. Then I decided to add back the code till it found the offending part.

    It seems so unbelievable.. And I figured you would be interested in the result. Only the word “drop” is sensitive to the number of spaces after the initiating comment symbol /*
    Zero or one space in front of drop causes the CSS NOT to save.

    IE /*drop */ and /* drop */ Will NOT save

    /* drop */ and /*for drop */ Both WILL save. ( the word “drop”, requires at least 2 leading spaces, but it seems that the word “drop is the only word requiring the 2 spaces)

    So I needed either change the first word in the commented section, or add at least 2 spaces in front of the word “drop”, if it was the leading word in the comment.

    my workaround is to change: /* drop down menu settings */

    TO

    /* drop down menu settings */

    which works. (explanation intentionally redundant, to make it totally clear, because of its unexpected nature)

    Again I would have never figured this out without your help. Great job ! Thank you so much !

    Do you think this would benefit from doing your suggested database repair?

    —————–

    PS: what is the CSS for setting the color of the lower(bottom) border to black? in the snippit

    /*  drop down menu  border settings */
    .sf-menu ul {
    border-left: #000;
    border-right: #000;
    border-top: #000;
    }

    To view the issue:
    web address is http://greaterbostonhypnosis.com/
    I wish to remove the white lines between items in the drop down menu.

    Thread Starter charlieusa

    (@charlieusa)

    still lost the spacing. (Last attempt)

    ——————————

    my workaround is to change: /* drop down menu settings */

    TO

    /* drop down menu settings */

    Thread Starter charlieusa

    (@charlieusa)

    still lost the spacing. (Last, Last attempt)

    ——————————

    my workaround is to change: /* drop down menu settings */

    TO

    /*<sp><sp>drop down menu settings */

    where <sp> = space

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Previous good custom CSS causing Virtue to not save change’ is closed to new replies.