polaris1
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Help me remove the white space above headerTo remove the thin grey line, take the border-top off of #branding in the css.
To remove the block of grey space above your page change the margin on #page from “2em auto” to “0 auto 2em auto”.
You might try using firebug if you don’t already, it makes changes like this much easier to figure out.
Forum: Fixing WordPress
In reply to: Help me remove the white space above header(in firebug that is)
Forum: Fixing WordPress
In reply to: Help me remove the white space above headerI was able to remove the white space by removing the margin on #site-description. You might also want to remove the top border on #branding.
Forum: Fixing WordPress
In reply to: How to display a site map pageI’ve used the plugin called “Simple Sitemap.” It generates a nice, sortable sitemap page for users.
Forum: Fixing WordPress
In reply to: my files randomly get minified (no caching plugin)You, my friend, define awesomeness. Thank you very much — worked like a charm.
Forum: Fixing WordPress
In reply to: my files randomly get minified (no caching plugin)I have Notepad++ set to create new documents in the Windows format.
Forum: Plugins
In reply to: Loading wp_editor through wordpress ajax not workingSorry, I should have been more specific about the answer to your question:
wp_editor(“” , “uniqueid”, array(‘textarea_name’=>”textareaname”) );
should produce a functioning editor with nothing in it.
Forum: Plugins
In reply to: Loading wp_editor through wordpress ajax not workingHi Macpraveen,
I am working on something similar and I noticed that in order for the icons to display properly the editor needs to be passed a unique id when you call it.
It seems like you might have an answer to a related question I have — I would like to fetch a wp editor on demand using ajax, but all I can seem to do with wp_editor() is echo the editor, not put it into a string to send to my javascript. How are you fetching an editor using ajax?
This is what isn’t working:
function addquestionanswerbox() { $boxHTML=""; $boxHTML+= "<h2>Question {($number+1)} :</h2>"; $boxHTML+= wp_editor( $question_c , "qaeditorq{($number+1)}", array('textarea_name'=>"qa_question[]") ); $boxHTML+= "<h2>Answer{($number+1)} :</h2>"; $boxHTML+= wp_editor( $answer_c , "qaeditora{($number+1)}", array('textarea_name'=>"qa_answer[]") ); $result=json_encode($boxHTML); echo($result); exit;
I would love to hear how you did this!
Thanks
Forum: Plugins
In reply to: Shortcodes in posts that are displayed in page templatesHere is the solution:
Instead of querying posts like this:
<?php $post_id = 13; $queried_post = get_post($post_id); echo $queried_post->post_content; ?>
Do it like this:
`<?php
$query = new WP_Query(‘p=13’);
if($query->have_posts())while($query->have_posts()):
$query->the_post();
?>
<?php the_content();?>
<?php endwhile; ?>`