WordPress Emoji Prefixed Submenu Primer Tutorial
โœ‚๐Ÿƒ๐Ÿพโ€โ™€๏ธ๐Ÿƒ๐Ÿผโ€โ™‚๏ธ
๐Ÿ“–

WordPress Show HTML Tags Primer Tutorial

WordPress Emoji Prefixed Submenu Primer Tutorial

The fact that we find scope for so many CSS improvements and ideas around the menu system of our WordPress blogโ€™s menu โ€œAdd Pageโ€ area and its submenus, is an indication of good and flexible web design, as we recently also saw with WordPress Show HTML Tags Primer Tutorial โ€ฆ thanks, WordPress!

Today we use PHP driven CSS to try to relax you users when you click on a menu and see a submenu โ€œdropโ€ down. Think, psychologically, you calm down a bit, here, if there is some extra space introduced โ€ฆ is an UX (user experience) opinion of mine, and you may well have a different one. Perhaps my opinion is swayed by the usual UX weakness we have about wanting to tell users as much as possible, and cramming things up โ€ฆ well, this morning, Nala told me thereโ€™d be โ€œno more of thatโ€ โ€ฆ her exact woofs โ€ฆ and so โ€ฆ we digress, but โ€ฆ do you remember WordPress Bullet Point CSS Styling Emoji Tutorial? Today, we just build on the WordPress TwentyTen themeโ€™s good olโ€™ header.php logic for that PHP driven CSS work to use the same techniques on a different CSS selection criteria โ€ฆ and so you see more WordPress design foresight, giving us lots of HTML classes to โ€œhang our hats onโ€ โ€ฆ merci, WordPress.

And how did we come by the discovery of these new CSS selection criteria? If you are a regular reader, weโ€™d forgive you if you immediately blurted out Firefoxโ€™s FireBug add-on, and it is true that itโ€™s hard to resist, but, today, perhaps you can see in todayโ€™s tutorial picture, a faint outline of Safariโ€™s โ€œout of the boxโ€ Web Inspector product that can help with this type of CSS investigation work, as well.

Itโ€™s not the science of green leaved piquancy exactly.

โ€ฆ but more the science of the fabulous CSS functionality involving :before and :after (selectors) and content: (property) usage โ€ฆ as you can surmise by the simplicity of the bold changes to WordPress TwentyTen themeโ€™s good olโ€™ header.php below โ€ฆ



$wsarray = array("", "01F311", "0026F3", "0026BD", "00263C", "00263D", "00263E", "01F311", "0026F3", "0026BD", "0026f5",

"\xF0\x9F\x91\xA0", "\xF0\x9F\x91\x93", "\xF0\x9F\x90\x98", "\xF0\x9F\x90\x92", "\xF0\x9F\x8E\x89",

"\xF0\x9F\x8D\xB0", "\xF0\x9F\x8D\xA9", "\xF0\x9F\x8D\xA8", "\xF0\x9F\x8D\xA7", "\xF0\x9F\x8D\xA3",

"\xF0\x9F\x8D\xB1", "\xF0\x9F\x8E\x88", "\xF0\x9F\x8E\xA7", "\xF0\x9F\x8E\xA8", "\xF0\x9F\x8E\xB5",

"\xF0\x9F\x8F\x88", "\xF0\x9F\x90\x99", "\xF0\x9F\x90\x9E", "\xF0\x9F\x90\xB6", "\xF0\x9F\x90\xBC",

"\xF0\x9F\x90\xBE", "\xF0\x9F\x93\x8A", "\xF0\x9F\x93\xA2", "\xF0\x9F\x91\xBC", "\xF0\x9F\x90\xAB",

"\xF0\x9F\x90\xA8", "\xF0\x9F\x90\x97", "\xF0\x9F\x8F\x80", "\xF0\x9F\x8E\xB7", "\xF0\x9F\x8E\xA9",

"\xF0\x9F\x8D\xAE", "\xF0\x9F\x8D\x92", "\xF0\x9F\x8F\x80", "\xF0\x9F\x8C\x88", "\xF0\x9F\x9A\xB2",

"\xF0\x9F\x9A\xA2", "\xF0\x9F\x9A\x99", "\xF0\x9F\x9A\x87", "\xF0\x9F\x9A\x8F", "\xF0\x9F\x9A\xA7",

"\xF0\x9F\x9A\xAA", "\xF0\x9F\x9A\x83", "\xF0\x9F\x9A\x87", "\xF0\x9F\x98\x81", "\xF0\x9F\x98\x82",

"\xF0\x9F\x98\xB8", "\xF0\x9F\x9A\x92", "\xF0\x9F\x9A\x87", "\xF0\x9F\x9B\x80", "\xF0\x9F\x8C\xB4",

"\xF0\x9F\x8C\xB5", "\xF0\x9F\x8C\xB7", "\xF0\x9F\x8C\x9F", "\xF0\x9F\x8C\xBD", "\xF0\x9F\x8C\xBE",

"\xF0\x9F\x8D\x84", "\xF0\x9F\x8D\xB7", "\xF0\x9F\x8D\x8F", "\xF0\x9F\x8D\x9F", "\xF0\x9F\x8D\xB5",

"\xF0\x9F\x8C\x89", "\xF0\x9F\x8C\x8A", "\xF0\x9F\x8C\x8B", "\xF0\x9F\x8C\x87", "\xF0\x9F\x8C\x86",

"\xF0\x9F\x8C\x81", "\xF0\x9F\x8C\x82", "\xF0\x9F\x8C\x82", "\xF0\x9F\x8C\x83", "\xF0\x9F\x8C\x84",

"\xE2\x9B\xAA", "\xE2\x9B\xB2", "\xE2\x9B\xBA", "\xE2\x9B\x83", "\xF0\x9F\x9A\x80",

"\xF0\x9F\x97\xBB", "\xF0\x9F\x97\xBC", "\xF0\x9F\x97\xBD", "\xF0\x9F\x97\xBF", "\xF0\x9F\x90\xA7",

"\xF0\x9F\x99\x8B", "\xF0\x9F\x99\x88", "\xF0\x9F\x99\x89", "\xF0\x9F\x99\x8C", "\xF0\x9F\x98\x96");

$ws = rand(0, (sizeof($wsarray) - 1));

$cs = rand(0, 10);

$csarray = array("black", "red", "blue", "purple", "maroon", "teal", "brown", "orange", "olive", "lime", "green");



if ($wsarray[$ws] != "") {





$wschild = rand(0, (sizeof($wsarray) - 1)); // page submenu spacing accentuation

$cschild = rand(0, 10);


echo "



ul.children li.page_item:before {

color: " . $csarray[$cschild] . ";

content: '\\" . $wsarray[$wschild] . " \\0000a0';

}



ul.children li.page_item:after {

content: no-close-quote;

}



ul.noclass {

list-style: none;

}



ul.noclass li:before {

list-style: none;

float: left;

margin-left: -15px;

color: " . $csarray[$cs] . ";

content: '\\" . $wsarray[$ws] . " \\0000a0';

font-size: 1.2em;

font-weight: bold;

}

// etcetera etcetera etcetera

";

Itโ€™s not EXACTLY relevant, but doesnโ€™t it make you feel like singing Green Acres is the place to be โ€ฆ ?

All in all โ€ฆ gracias, WordPress. Realmente realmente realmente pensamos que hay que mantener esto en marcha.



Previous relevant WordPress Show HTML Tags Primer Tutorial is shown below.

WordPress Show HTML Tags Primer Tutorial

WordPress Show HTML Tags Primer Tutorial

Weโ€™ve got one new concept and one concept revisited today with our work on some WordPress Blog functionality to allow users to show the HTML coding behind some of the HTML elements of the RJM Programming Blog webpage of interest. Say some because not all HTML elements lend themselves to allowing the functionality weโ€™ve used to display the HTML involved. It is really only those HTML elements where their [element].innerHTML components can be displayable text that will show the HTML coding for todayโ€™s new functionality โ€ฆ even so, we think this could be a useful learning tool for users wanting to get ideas of what HTML elements go to make up what webpage look.

So todayโ€™s new concept, at least in relation to this blogโ€™s postings from the past, is that it hadnโ€™t occurred to us until today that the โ€ฆ

  1. WordPress TwentyTen themeโ€™s top menu is constructed in such a way as to allow you to put โ€œintelligenceโ€ into the โ€œAdd Pageโ€ Title that you enter โ€ฆ in other words you can include into the โ€œAdd Pageโ€ Title an HTML a tag, for example, that performs Javascript there and then on the webpage you are currently on, rather than navigating to a new โ€œAdd Pageโ€ menu page โ€ฆ which is of great interest to us with todayโ€™s work, because the user is likely to be reading a webpage of interest, now, that they want to see the internal HTML coding for, compared for them, in a new popup (window.open()) webpage, rather than seeing this for the โ€œAdd Pageโ€ menu webpage (we consider less interesting, but weโ€™ll still allow in as your functionality usage choice)
    Add Page view of this
    โ€ฆ and, as weโ€™ve talked about before, last, at this blog with โ€ฆ
  2. WordPress Bullet Point CSS Styling Emoji Tutorial reminded us of the fabulous CSS functionality involving :before and :after (selectors) and content: (property) usage, which we put to use here โ€ฆ those of you into editing XML and using Epic may be โ€œright at homeโ€ with these ideas โ€ฆ though what we do here with HTML is nothing as involved as Epic does for XML โ€ฆ weโ€™re just into presenting a readonly guide, for curiosityโ€™s sake

So what needed to change in good olโ€™ (TwentyTen themeโ€™s) header.php to do this pretty simple change โ€ฆ



</script>

<?php

if (isset($_GET['showtags'])) {

echo "<link href='//www.rjmprogramming.com.au/HTMLCSS/showtagsโšซcss' rel='stylesheet' type='text/css'>";

}

?>

</head>

โ€ฆ just asking for the address bar URL to contain a (PHP $_GET[โ€˜showtagโ€™]) showtag= part to the webpage call. Itโ€™s not the science of green leaved piquancy exactly.

And so if you want to see what we have here with extra HTML tagging shown, in a new popup window, try this liveโœ‚run link, and โ€œchow for nowโ€.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Tutorials and tagged , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *