wordpress - PHP: Add html icons to a script -
I have to add the same icon for each li class which automatically generates the PHP script , Which I am using in a customized widget in a WordPress site.
This script is using which to display some child pages in any WordPress widget.
& lt; ? Php $ ancestor_id = 24; $ Genealogy = get_pages (array ('child_of' = & gt; $ ancestry_id)); $ Incl = ""; Foreign currency ($ $ descendent as page $) {if (($ page- & gt; post_perrent == $ ancestors_ID}) ($ page-> post_perrent == $ post- & gt; post_perrent) || ($ Page- & gt; post_perrent == $ post- & gt; ID)) {$ incl. = $ Page- & gt; Id ""; }}? & Gt; & Lt; Ul & gt; = "Gtc:" menu_order "));?>
The code for the icon (already specified in a class) which I use Required to be done.
How do I generate
add a single icon?
Use CSS, you need the rules list-style-type and
list-style-icon
Comments
Post a Comment