elearn2014
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to change the search action in wordpress serach bar?All the plugin in my wordpress.
CodePen Embedded Pens Shortcode
Crayon Syntax Highlighter
Disable Google Fonts
Quotmarks Replacer
SyntaxHighlighter EvolvedWhich plugin can result in this result?
- This reply was modified 5 years, 11 months ago by elearn2014.
Forum: Fixing WordPress
In reply to: Why deleted image can still be displayed?It is a cache,dismissed when to open it with another private browser.
Forum: Fixing WordPress
In reply to: How to set layout of the search result ?Here is my wordpress
Please see the layout in your web-browser.
https://104.223.65.117/wp/?s=emmet
My requirements:
1.font-size
Make it smaller.2.post-title
Narrow the height of every post-title.- This reply was modified 6 years, 8 months ago by elearn2014.
- This reply was modified 6 years, 8 months ago by elearn2014.
- This reply was modified 6 years, 8 months ago by elearn2014.
Forum: Fixing WordPress
In reply to: How to show only post title for searching result ?Here is my theme’s content.php.
cat /var/www/html/wp-content/themes/twentyfourteen/content.php<?php /** * The default template for displaying content * * Used for both single and index/archive/search. * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php twentyfourteen_post_thumbnail(); ?> <header class="entry-header"> <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div> <?php endif; if ( is_single() ) : the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; ?> <div class="entry-meta"> <?php if ( 'post' == get_post_type() ) twentyfourteen_posted_on(); if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> <?php endif; edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> <?php if ( is_search() ) : ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php /* translators: %s: Name of current post */ the_content( sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false ) ) ); wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> </article><!-- #post-## -->
Forum: Fixing WordPress
In reply to: How to display a category tree in the right side?please tell me which one can do the job?
Forum: Fixing WordPress
In reply to: Why 7 lines turned into 2 lines after publish?In text editor,i found that
< p
result in it,to remove<
in< p
,newline is in good status,wordpress escape the< p
in its own way.
In stackoverflow, all the white blanks at the beginning of line are treated as none.4 or more white blanks at the beginning of line can make the content in code status.Forum: Fixing WordPress
In reply to: Why can’t upload file when permission is 755?sudo chown -R apache.apache /var/www/html/wp-content/uploads
Forum: Fixing WordPress
In reply to: Why 7 lines turned into 2 lines after publish?The sample txt file was uploaded here
You can download it , copy , paste and publish it.
Forum: Fixing WordPress
In reply to: Why there are two width value for .site::width in my 2014 theme?It is opened in firebug.
There is only value left when to open it with chrome.Forum: Fixing WordPress
In reply to: why can’t upload deb package in my wordpress?sudo vim /var/www/html/wp/wp-includes/functions.php
add_filter(‘upload_mimes’,’custom_upload_mimes’);
function custom_upload_mimes ( $existing_mimes=array() ) {
$existing_mimes[‘deb’] = ‘application/deb’;
return $existing_mimes;
}Forum: Fixing WordPress
In reply to: How to set one white space as width as one character in wordpress?To set font-family as monospace.
Forum: Fixing WordPress
In reply to: Why can’t customize format for pre tag?The content in the pre tag can’t be displayed properly.
All the content were wraped with<pre lang="bash"></pre>
.
To fix<pre lang="bash">
as<pre>
,problem solved.
The meaning of<pre lang="bash">
in wordpress plugin–wp syntax was mixed with html standard pre tag,no lang attribution in html standard,it is a private extend attribution in wp syntax.- This reply was modified 7 years, 6 months ago by elearn2014.
- This reply was modified 7 years, 6 months ago by elearn2014.
Forum: Fixing WordPress
In reply to: Why can’t customize format for pre tag?I have no vps,wordpress is build on localhost.
https://drive.google.com/file/d/0B9BpilWzmmMCUHNuTGFsM0ZoZEk/view?usp=sharing
Here is the whole css file.
https://drive.google.com/open?id=0B9BpilWzmmMCcGg5c09xWE5WRVU- This reply was modified 7 years, 6 months ago by elearn2014.
- This reply was modified 7 years, 6 months ago by elearn2014.
Forum: Fixing WordPress
In reply to: How to set one white space as width as one character in wordpress?Could you tell me how many white space are as width as one character in your wordpress?
One or two?Forum: Fixing WordPress
In reply to: Why the search results are wrong in search posts form?It’s no use to paste it in
pre
tag in text mode.
Please try it with my code.txt file to verify .- This reply was modified 7 years, 7 months ago by elearn2014.