Why all the SKIP links appearing on Moodle pages?

Why all the SKIP links appearing on Moodle pages?

Rod Ward -
回帖数:8

Hello all,

I've installed Moodle several times over the past months but I've never seen this before. I just installed Moodle 1.8.3+ on Windows 2003 + MSSQL and there are links appearing above blocks on many pages with the word SKIP. See graphic below. The links don't do anything if you click them and I'd dearly like to get rid of them.

Is there some setting that controls this?

附件 1.gif
回复Rod Ward

Re: Why all the SKIP links appearing on Moodle pages?

Joseph Rézeau -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像
This looks like a visual theme issue. Which theme are you using? Is it referring to the standard theme?
Joseph
回复Joseph Rézeau

Re: Why all the SKIP links appearing on Moodle pages?

Rod Ward -

Ah...the theme I'm using is a custom one I developed for Moodle 1.8.2.

My client uses SAP Portal and asked me to skin Moodle to look like it belonged to the Portal so that the look and feel woudl be more 'acceptable to management'. 

The customised theme was based on the standard theme and worked perfectly on 1.8.2. However, I've just installed 1.8.3+ and I copied over the theme folder from the older installs thinking there wouldn't be too much difference. But obviously there IS something new that has been added to the Moodle mix between the two minor versions that is not covered by the previous theme CSS files.

I should be able to work it out by viewing the source HTML but does anyone know what got added in here and why? Is this some type of normally hidden debug code etc?

Rod

回复Rod Ward

Re: Why all the SKIP links appearing on Moodle pages?

Ray Lawrence -
Hi Rod,

I've had this a couple of times following an upgrade to 1.8.3. A forced refresh (Ctrl+F5) fixed it. 是的
回复Rod Ward

Re: Why all the SKIP links appearing on Moodle pages?

Chad Outten -
Hey Rod! yeah, i agree with Ray > Ctrl + F5 will force refresh the page & should clear your style sheet caching. you're using IE browser, right?!

I believe 'the Skip' link is an accessibility feature designed for screen readers that was added to standard themes from 1.7

Cheers, Chad
回复Rod Ward

Re: Why all the SKIP links appearing on Moodle pages?

Ilya Kazansky -

Check styles_layout.css in standard theme look for

/*Accessibility: Skip block link, for screen reader users. */
a.skip-block, .skip-block {
  display:block;
  width:2em;
  height:1px;
}
.sideblock .skip-block {
  height:4px;
}
.skip-block-to {
  font-size:1px;
}

I think this is the cause, tracked back to it by looking at html source

回复Ilya Kazansky

Re: Why all the SKIP links appearing on Moodle pages?

Ilya Kazansky -
Ok what worked for me is adding a visibility:hidden property to all the above styles 微笑
回复Rod Ward

Re: Why all the SKIP links appearing on Moodle pages?

Alex Rowan -
i found a complete reinstall of my moodle dir did the trick. all i had todo was setup my config.php and all was happy once again.