• Hello everybody.. I am making a danish fantasypicks game, and of course I need everything in Danish. I have this current code in the CSS from the theme:

    .hover .readmore .anchor:before {
    	/*content: 'Read more...';*/
    }

    This hovers over some images on the frontpage. Of course I ned ‘Read more…’ translated to ‘Læs mere…’, but when I change the text to this, or try to overwrite the code with:

    .hover .readmore .anchor:before {
    	/*content: 'Læs mere...';*/ !important
    }

    Nothing happens.

    Can anyone help me to troubleshoot this little piece of code, or give me any other methods to change the text? You can visit the site here:

    My site

    Best regards,
    Mikkel Skov Christensen

Viewing 4 replies - 1 through 4 (of 4 total)
  • In a CSS file anything between /* and the following */ is a comment.
    So in the example you posted the section:
    <strong>content: 'Læs mere...';</strong>
    is ignored, not sure what happens then to the !important (oould it be that what you posted is not quite what was in the file ?

    Otherwise it is likely that the hover text is specified elsewhere, OR it could be happening in Javascript.

    Have just checked your website, the hover text is done with a span element thus:`<div class=”one-third column”>
    <div class=”one-third hover”>
    <a title=”” href=”#”>
    <div class=”readmore” style=”background-position: 120px 70px; display: block; opacity: 0.01;”>
    <span class=”text” style=”top: 115px;”>
    Read more…
    <span class=”anchor”></span>
    </span>
    </div>
    <img alt=”” src=”http://superligapicks.dk/wp-content/uploads/2014/07/stillingen.jpg&#8221; style=”display: inline;” data-lazy-loaded=”true”>
    <noscript><img src=”http://superligapicks.dk/wp-content/uploads/2014/07/stillingen.jpg&#8221; alt=”” /></noscript>
    </a>
    <span class=”hover-icon rt”>+</span>
    </div>
    `
    I think you find this is coming from a plugin, let us know here if you need further assistance.

    Thread Starter mew4mikkel

    (@mew4mikkel)

    I think you could be right.. I also checked my website first, to find out if I could se where to change it, but without luck. And I’ve already searched the entire theme for the sentence “Read more”, and can’t find it anywhere else than in the CSS which i posted in my first comment.

    I don’t know what to do, to change the text.

    It has to be coming out of a plugin. I see several places in the HTML code of your page:

    <span class="text" style="top: 115px;">
    Read more...
    <span class="anchor"></span>

    Which plugins are you using ?
    Suggest that you search for
    anchor
    OR
    115px;

    Thread Starter mew4mikkel

    (@mew4mikkel)

    I am not using any particular plugins that are doing this.. This is a list of the activated plugins that I am using:

    • Football pool
    • LayerSlider WP
    • Lazy Load
    • Nav Menu Roles
    • UserPro
    • WordPress Importer
    • WP-Mail-SMTP

    The anchor with “Read more…” is comming from the theme I’ve installed, called: “Lamoon”.

    I’ve searched both anchor and 115px, and still no results..

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Can't change text in stylesheet.’ is closed to new replies.