This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CTRL+H (Search and Replace) | |
Search: ^[\s]*?[\n\r]+ | |
**Regular Expression must be on | |
Replace: with on space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //for custom post?> | |
<title><?php bloginfo('name'); ?> <?php is_front_page() ? bloginfo('description') : wp_title(''); ?></title> | |
<?php //for static homepage?> | |
<title><?php bloginfo('name'); ?> » <?php is_front_page() ? bloginfo('description') : wp_title(''); ?></title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[product_categories] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DirectoryIndex index.php index.html index.htm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li>Get timely updates through conference calls, webcasts and presentations.</li> | |
<li>Are you a member of the media? Our Newsroom contains our press kit</li> | |
<li>We develop and grow business leaders.</li> | |
<li>We always want to keep your home safe and stedy</li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content start --> | |
<div class="zigzag2"> | |
<div class="container"> | |
<div class="row justify-content-start"> | |
<div class="col-lg-6"> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function revcon_change_post_label() { | |
global $menu; | |
global $submenu; | |
$menu[5][0] = 'News'; | |
$submenu['edit.php'][5][0] = 'News'; | |
$submenu['edit.php'][10][0] = 'Add News'; | |
$submenu['edit.php'][16][0] = 'News Tags'; | |
} | |
function revcon_change_post_object() { | |
global $wp_post_types; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section id="promotion_area" class="promotion_area"> | |
<div class="container"> | |
<div class="row"> | |
<div class="pormos"> | |
<div class="col-md-3 col-sm-6"> | |
<div class="single_promo portfolio"> | |
<img src="img/1.png" alt=""/> | |
<p>John Doe</p> | |
<span>Asst. Professor, Cooking</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="gallery-images"> | |
<div class="col-md-6 col-sm-6 col-xs-6"> | |
<div class="gallery_single active"> | |
<a class="fancybox" rel="group" href="img/gallery1.jpg" title="Image Caption"> | |
<img src="img/gallery1.jpg" alt="gallery image" /> | |
</a> | |
</div> | |
</div> | |
<div class="col-md-2 col-sm-6 col-xs-6"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remove empty paragraphs created by wpautop() | |
* @author Ryan Hamilton | |
* @link https://gist.github.com/Fantikerz/5557617 | |
*/ | |
function remove_empty_p( $content ) { | |
$content = force_balance_tags( $content ); | |
$content = preg_replace( '#<p>\s*+(<br\s*/*>)?\s*</p>#i', '', $content ); | |
$content = preg_replace( '~\s?<p>(\s| )+</p>\s?~', '', $content ); | |
return $content; |
NewerOlder