Scott reviews four techniques for creating Div links in WordPress. Each method has it’s pros and cons and Scott highlights them all. he also recommends his personal approach to making the links.

★ Technique One – HTML 5 Link ★
This technique is fully acceptable in the HTML 5 and it works great when you initially save the page or post but there’s a problem. When you revisit the page or post and make an update WordPress removes the link from the Div. This will eventually be a problem because you won’t remember that WordPress is doing it and unless you check the page the error could be active for a long period of time.

★The CSS A HREF Block Method ★
This method is bulletproof because as far as WordPress is concerned the only thing the system sees is a simple HREF link. All you do is define A with a class that makes the link a block. The block gets assigned a height and width and the user will think the link is a DIV. This method technically should not be on this list because it does not use a div but it’s a common technique and everyone uses it.

★ Technique Three – Inline or Embedded Javascript ★
This method uses embedded javascript in the div tag itself. It’s an old-school technique and it works great but unfortunately, WordPress removes the JavaScript when you make changes to the page just like the HTML 5 method so this option is no good.

★ Technique Four – Jquery Method ★
This method is bulletproof because the div link is created by the Jquery library referenced in WordPress. The problem is getting it to work in your theme because you have to reference a jquery script to make it work. If you div links are on a single page it would be a good idea to only reference the script on that single page vs. all pages. Another downside is that Jquery uses a fairly large file. Some argue this is a downside due to the call but I disagree every theme uses it.
————————————————————————————————————————-
Wanna Learn About More Tech That Will Help Your Channel? CLICK BELOW
————————————————————————————————————————
https://www.youtube.com/c/scott_fichter/?sub_confirmation=1 />
■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■
■ SURF SCOTT’S GEAR & WHAT HE DESIRES FOR THE FUTURE ■
■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■ □ ■
▪►
https://rebrand.ly/Lights-SpecialFX
▪► https://rebrand.ly/Cameras-and-Gear
▪► https://rebrand.ly/Mics-and-Sound
▪► https://rebrand.ly/Computer-Gear

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Attribution
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Outro Music
Artist – AskieR
Song Title – Soulful
https://www.youtube.com/watch?v=RIfC3ztzpOE />
Outro Video
Russia Hardbass Crazy Dance
https://youtu.be/y90yaLFoYoA

catwordpress