Populate dropdown with Child Pages based on Parent Page chosen
Populate dropdown with Child Pages based on Parent Page chosen
Populate dropdown with Child Pages based on Parent Page chosen
It’s possible to use the language_attributes filter as before since the template canvas in FSE contains: <html <?php language_attributes(); ?>> Add this code to the appropriate place in your theme or plugin: <?php add_filter( ‘language_attributes’, function($lang_attributes) { return “$lang_attributes foo=\”bar\””; });
Here is a way of adding the class. Replace blog withe the slug of the page. Example – This class will be added only on example.com/blog. Put this code in your header.php <?php if($post->post_name === ‘blog’){ ?> <html class=”html-homepage”> <?php } else { ?> <html> <?php ?>
I would set up a new page template (see http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates), create a new page (Pages > New) and set it to use that template, and then set WordPress to use that page as the homepage (Settings > Reading). Then you can fill the custom page template with whatever content you want in between wp_head() and … Read more
It’s a JavaScript editor just like the one used in a new/edit post/page editor only here the editor is: WMD-Editor (i think) and WordPress uses an editor named: TinyMCE In both cases it’s a matter of attaching the editor to a textarea. you can use Dean’s FCKEditor For WordPress which uses the powerful WYSIWYG CKeditor … Read more
If you useWidget Logic it adds a new filter widget_content which you can hook your function to and add link to it somthing like: add_filter(‘widget_content’,’add_link_to_widgets’); function add_link_to_widgets($content){ return $content . ‘<br /><a href=”http://www.domain.com”>my link</a>’ } Update You are missing the point, the plugin is great if you want to use his ability to limit the … Read more
Add the tracking code to one of your theme files, most likely footer.php. The easiest way to do this is to go to your admin panel and go to Appearance > Editor, and on the right side, find the entry for Footer (footer.php), and then insert the code right before the closing </body> tag. Update … Read more
Studying the code is an obvious approach. You can also try plugins, such as Debug Bar that can easily display you information, such as template being used and so what you are looking at.
onclick is not i the list of allowed attributes. It will be removed by kses. You can filter the list, use Extend KSES for example.
Please see this documentation for the usage about the_time(). You are not supposed to add html inside the parameter of the_time(). (edit: use get_the_time() with in string concatenation) To solve this, try this code: echo ‘<div class=”post_date”><div class=”month”>’.get_the_time(‘F’).'</div>’.'<div class=”day”>’.get_the_time(‘d’).'</div><div class=”year”>’.get_the_time(‘Y’).'</div></div>’; edit: corrected to the use of get_the_time()