nvrau
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: What are "\n\t\t\t\t\t\t"?Thanks for the quick replies!
That is what brought me to this point, looking for a way to render the HTML code in a more readable manner. New lines were not being rendered nor tabbed spacing, so I deleted the “\n\t\t\t\t\t\t” pressed enter, saved and refreshed. Now it renders in a more readable manner by moving the </div> tag down a row and so far I haven’t noticed any problems doing this.
The code came from the “single.php” file in BlankSlate theme. This is what I started with:
<span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span> <?php edit_post_link( __( 'Edit', 'blankslate' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>Which rendered like this:
<span class="edit-link"><a class="post-edit-link" href="http://domain.com/wp-admin/post.php?post=1&action=edit" title="Edit Post">Edit</a></span></div>This is what I have now:
<span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span> <?php edit_post_link( __( 'Edit', 'blankslate' ), "<span class=\"meta-sep\"> | </span> <span class=\"edit-link\">", "</span> " ) ?> </div>And it renders like this:
<span class="entry-date"><abbr class="published" title="2012-07-23T09:23:53+0000">July 23, 2012</abbr></span> <span class="meta-sep"> | </span> <span class="edit-link"><a class="post-edit-link" href="http://domain.com/wp-admin/post.php?post=1&action=edit" title="Edit Post">Edit</a></span> </div>Will simply adding the new line cause problems? Or should I investigate why the “\n\t\t\t\t\t\t” isn’t working as it should?
@tomblank Did you ever find an answer to your question? I am wondering the same thing.
ANyone know of another plug-in which will accomplish the same as this looks like it is supposed to accomplish?
There doesn’t appear to be any plug-ins available for the visitor of a site to select their preferred theme. All the switchers are controlled from the admin. The only one close to what I am looking for is the Theme Switcher. However, it changes the way the Widgets in the admin works and is based on the current theme selected. Seems like a problem to me but the plug-in has a four star rating, so maybe not.
TIA!