furycd001

web


I’ve come to find that wordpress permissions can often be broken with a fresh install on Ubuntu. Thankfully Angel Alonso has made it super easy to fix. Simply open a terminal and wget his script from github, chmod it & then execute it. That’s the base of it, but see the three steps below....

  1. wget https://gist.github.com/Adirael/3383404/raw/6c5446d56477426faeb709e5b807f00422acdea2/fix-wordpress-permissions.sh
  2. chmod +x fix-wordpress-permissions.sh
  3. sudo ./fix-wordpress-permissions.sh /var/www/html

#Wordpress #Web #Fix #Ubuntu


YouTube can load videos and have them take up the full width & height of your browser. To make YouTube do this simply copy the video id from the url & paste it after youtube.com/embded/. For example....

STANDARD YOUTUBE VIDEO.

https://www.youtube.com/watch?v=R-WiwLZ6ZdM

FULL WIDTH & HEIGHT VIDEO.

https://www.youtube.com/embed/R-WiwLZ6ZdM


#Youtube #Web #Video


You can style multiple html links differently on the same page simply by adding a class to the link & then some css. For example the two linsk below would be styled with the css that follows....

HTML

<a href=“something dot html” class=“newclass”>Link text</a>
<a href=“somethingv1 dot html” class=“anothernewclass”>More link text</a>

CSS

a.newclass:link {
color: #444444;
text-decoration: none;
}

a.newclass:visited {
color: #444444;
text-decoration: none;
}

a.newclass:hover {
color: #f2f2f2;
text-decoration: none;
    }

a.newclass:active {
color: #444444;
text-decoration: none;
}

a.anothernewclass:link {
color: #f2f2f2;
text-decoration: none;
}

a.anothernewclass:visited {
color: #f2f2f2;
text-decoration: none;
}

a.anothernewclass:hover {
color: #222222;
text-decoration: none;
}

a.anothernewclass:active {
color: #f2f2f2;
text-decoration: none;
}

#Web #HTML #CSS #Code


Add the code below to the top of your .css file. Change the image name / location & everything’s good to go….

CSS

html {
background: url(image.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

#Web #HTML #CSS #Code


Some people dislike YouTube’s new mini player. If you happen to be one of those people, then you can easily turn it off….

  1. Head over to your YouTube settings.
  2. Select “Playback and performance”.
  3. Uncheck “Enable Mini Player” & your done.
  4. It’s super simple.

#Youtube #Web #Video