Skip to content

Instantly share code, notes, and snippets.

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@egeorjon
egeorjon / wp_upload_media_remove_accents
Created September 17, 2013 14:55
WordPress: How to remove accents from the url when upload a media?
<?php
/**
* From: http://www.geekpress.fr/wordpress/astuce/suppression-accents-media-1903/
*
* How to remove accents from the url when upload a media
*/
add_filter('sanitize_file_name', 'remove_accents' );
?>
@egeorjon
egeorjon / wp_nav_menu_remove_class_id
Created September 20, 2013 15:08
Remove class and id on the menu generated by wp_nav_menu
<?php
/* -- Remove all class or id -- */
add_filter('nav_menu_css_class', 'my_css_attributes_filter', 100, 1);
add_filter('nav_menu_item_id', 'my_css_attributes_filter', 100, 1);
add_filter('page_css_class', 'my_css_attributes_filter', 100, 1);
function my_css_attributes_filter($var) {
return is_array($var) ? array() : '';
}
@egeorjon
egeorjon / add_remove_class_with_js.md
Last active October 13, 2023 23:06
Add or Remove css class with Javascript

From: StackOverflow

To change all classes for an element:

document.getElementById("MyElement").className = "MyClass";

To add an additional class to an element:

document.getElementById("MyElement").className += " MyClass";

To remove a class from an element:

From [My current HTML boilerplate](https://www.matuzo.at/blog/html-boilerplate/)
```HTML
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">