all-scribbly

su_boxes – adding link to header

coding
https://www.techiedelight.com/dynamically-generate-anchor-tag-javascript/ Dynamically generate an anchor tag with JavaScript/jQuery 1. Using JavaScript In vanilla JavaScript, you can use the document.createElement() method, which programmatically creates the specified HTML element. The following example creates a new anchor tag with desired attributes and appends it to a div element using the Node.appendChild() method. JS document.getElementById('generate').onclick = function() { var

su_boxes – adding link to header Read More »

CORS – Fixing Errors

all-scribbly coding
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors CORS error messages Firefox’s console displays messages in its console when requests fail due to CORS. Part of the error text is a “reason” message that provides added insight into what went wrong. The reason messages are listed below; click the message to open an article explaining the error in more detail and offering

CORS – Fixing Errors Read More »

Sass Style Guide – CSS Tricks

coding
https://css-tricks.com/sass-style-guide/Use Your Regular CSS Formatting Rules / Style GuideThis post is about Sass-specific stuff, but as a base to this, you should follow a whatever good CSS formatting guidelines you are already following. If you aren’t yet, this roundup of style guides may help you. This includes things like:Be consistant with indentationBe consistant about where

Sass Style Guide – CSS Tricks Read More »

Styleguides – Major Sites

coding
GitHubhttps://styleguide.github.com/Googlehttps://google.github.io/styleguide/SASShttps://sass-guidelin.es/CSSIdiomatichttps://github.com/necolas/idiomatic-cssCSS Wizardryhttps://csswizardry.com/2012/04/my-html-css-coding-style/Smashing Magazinehttps://www.smashingmagazine.com/2008/05/improving-code-readability-with-css-styleguides/ThinkUPhttps://github.com/ginatrapani/ThinkUp/wiki/Code-Style-Guide:-CSSWordpresshttps://make.wordpress.org/core/handbook/coding-standards/css/Jonathan Snook’s Scalable and Modular Architecture for CSShttp://smacss.com/

Styleguides – Major Sites Read More »

Sass – Notes

coding
Concatenating Selectors TogetherFor concatenating selectors together when nesting, you need to use (&) to specify the parent selector..class { margin:20px; &:hover { color:yellow; } }p { margin: 2em auto; > a { color: red; } &:before { content: “”; } &:after { content: “* * *”; } }Target elements inside an elementYou just need to

Sass – Notes Read More »

No Comments In Pages

coding
if using editus – it screws with it’s ability to hide / ignore parts of the page.Got a response back from editus:Thank you for letting me know. I will look into it further. Here are workaround you can try.Add the following PHP code: (Either using a PHP code injection plugin or adding to your theme’s

No Comments In Pages Read More »