Accessibility error - Empty link. A link contains no text. - Wordpress - wordpress

As you can check in the following link
https://benetialingerie.gr/product-category/%ce%ac%ce%bd%ce%b4%cf%81%ce%b5%cf%82/
there are some color attributes.
In the following link, you can check a report via webaim with some accessibility errors.
https://wave.webaim.org/report#/https://benetialingerie.gr/product-category/men/?lang=en
Just because all colors are buttons too, I want to insert somewhere an alt txt or something which, if I understand right, points out that it is a link.
The error I got is:
Empty link
A link contains no text.
Due to my limited developing skills, I don't know where exactly I must edit the code. I found something relevant, a plugin called "Variation Swatches for WooCommerce".
Can anyone help me out fixing this?

Just add an aria-label to your link. It will not only make the WebAIM/WAVE report happy, it will also allow a screen reader to hear the color name when they navigate to the link.
<a aria-label="red" href="https://benetialingerie.gr/product-category/%ce%ac%ce%bd%ce%b4%cf%81%ce%b5%cf%82/?filter_color=%ce%ba%cf%8c%ce%ba%ce%ba%ce%b9%ce%bd%ce%bf" rel="nofollow" class="rtwpvs-term-span rtwpvs-term-span-color" style="background-color:#db100a;" role="link"></a>
Note that you have role="link" on the <a>. The default role of an <a> element is already a link so the role attribute is not needed.

Related

Changing font of the browser tab in React App

Does anyone out there in the universe know how to change the font family for the app title that appears in the tab of your web browser? Like the one shown below
I know in the index.html file in the public folder there is the <title>React App</title> where you can change the title, but I'm not sure how to change the font.
Thanks in advance!
Kevin
You asked very good questions, in fact you can't change it. Simply go to your console. Do this :
const title = document.getElementByTagName('title');
Then press enter. After that simply write again the console:
title.
And you will see the html collection for the tag title. If you keep looking you will see a lot of options are null. Do you will understand that the tag title it's can't be modified as much as the other tags like h1 or span. You can add a javascript code to update the title let's say the number of notifications along side the title so you can do this :
document.title= (3) + is "react app".
Hope I answered your question 🙋.
Ps: I'm using my phone sorry to not provide the codes in there specific area.

Where i can edit a text in wordpress that seemingly isn't in code?

My problem is I'm currently working on a wordpress site using woocomerce. I made a variable product and its generated a dropdown. The problem is before the dropdown its "generating" a text saying " … do dropdown …. " which is nowhere in the code. Not even the theme files or even in the database. i Provide some screenshot for the HTML code.
I think its in the css ::after content"" but i cant find it anywhere.
I dont want to even show anything so a simple display:none would be nice but i cant select in css.
Thank you for the help.
The text could be in either:
The code base - You can do a search in files on linux server by:
grep -noir "do dropdown"
Or the database - You can do an export of the database and then search the export with a text editor locally to find the table it is stored in. This will give you a lead on how you can change it.

Drupal 7: When I make changes to a block, previous edits are replaced with the new once instead of adding up to the previous edits

I have a drupal site built by a freelancer, there are few things which were confusing.
When I click the edit button for a node, I see the CkEditor - I tried adding HTML tags and some css to tags. Then I saved it. I found few more changes have to be done, so I clicked the edit button on the respective node and I found the tags/css I added were missing.
Similarly I clicked the edit button for some other node and I did not do anything, I just clicked the save button. The output was completed distorted(because few css was missing and some tags were missing too).
P.S - Am very new to Drupal and this might be a basic question. Please bear with me.
Set the text filter to "Full html" then click on "source" to insert html tags and css. Otherwise (surely a better solution) install the Ace editor, a very useful module with a syntax highlighter for html, php, and more.

Meteor xolvio:md-blog: Site title is changed to "name"

I have finally successfully installed the Meteor package md-blog from xolvio. The only thing that is bothering me, is that the title of the site is changed to "name". Where can I remove this?
Also on some blog entries my logo in the navbar disappears. Does anyone know what this could be?
If you're basing your blog on the example app (https://github.com/xolvio/md-blog/tree/master/app), the strings used in the app are defined in the internationalization directory (https://github.com/xolvio/md-blog/tree/master/app/i18n). You can edit the en.i18n.json file as you see fit. The site_title property is what you need to edit to change the title of the blog.
Without seeing your blog, I can't evaluate why your logo disappears. Inspect the page to see if it's there but not visible. It's likely a css issue.

Django CMS Deleting HTML5 Tags and Attributes

I am having a big time issue with solving a problem. I have a placeholder called main for the content region of the page. I was building that region in the cms. Everything was going great until I attempted to add an embedded video contained in an iframe. When I save django cms completely removed the iframe and left an empty div. So I attempted to use prettyphoto light box to open the video by clicking on an image. The code I added to the page through the cms is:
<a rel='prettyPhoto[youtube]' href="https://www.youtube.com/embed/mqVZF_yb8C0?autoplay=1&start=1765&iframe=true" data-rel="prettyPhoto">Click Image</a>
When I saved, django cms completely removed the data-rel attribute from the link which is obviously needed for the js. So I went a step further and adapted the code of the data attribute to:
rel="prettyPhoto"
and the cms also removed that attribute! Also anytime I add an html5 tag like article of section it hates that too! What gives here? Am I doing something wrong? Any advice would be appreciated. 
Aaron,
Thanks.
Please see the discussion at https://github.com/divio/django-cms/issues/1529. We use html5lib to clean the contents of the text plugin (this cannot be turned off for security reasons).
What you'll want to do is write a custom plugin (possibly one that can be embedded inside text plugins).

Resources