Wikipedia viewer issues. Page functional a few months ago but doesn't work now

Hi Guys,

So I completed my front end developer certificate a few months ago and have just started to upload my projects to my git hub account. When I was doing this I noticed my Wikipedia was no longer functional. It was working fine a few months ago .

I’ve been having a hard time trying to find the issue. It seems to be different from different browsers. On Safari the API does not return the request when called and on Chrome the API returns the request but then intermittently doesn’t show() / hide() (using jquery) the information once it has been parsed into HTML.

Could anybody help me with these issues?


Have you looked at console yet?

Refused to display ‘’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.

It probably has to do with chrome updates or api updates. I would google this error log.

I’ve checked that out but it doesn’t seem to be the issue. I’ll keep at it.

If I remove the urls from the anchor tags by making href="#", then everything seems to work fine. Honestly, I would not wrap the images in the anchor tags at all and just add the following to the #btn and #randombtn CSS selectors.

  text-align: center;
  line-height: 50px;

Thank you so much. That was it. There is no need to adjust the CSS but the anchor tags were the problem. I was concentrating on the JS and didn’t even bother looking into the HTML.

If you completely remove the anchor tags surrounding the image elements, you will have to apply the CSS changes I suggest above to #btn and #randombtn, or the images will sit at the top left of each of the divs.

Yes, I see what you mean now. The anchor tags were not needed at all. Thanks.

1 Like