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
| UPDATE wp_posts SET post_content = replace(post_content, 'http://old/', 'http://new/'); | |
| UPDATE wp_posts SET guid = replace(guid, 'http://old/', 'http://new/'); |
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
| /** | |
| * Media: Larger than | |
| */ | |
| @media (min-width: 1200px){ | |
| } | |
| @media (min-width: 992px){ | |
| } | |
| @media (min-width: 768px){ |
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> | |
| <span>Hello</span> | |
| </div> | |
| $('div').wrap().parent().html(); |
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 echo do_shortcode('[contact-form 1 "Form"]'); ?> |
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
| .center-items { overflow: auto; list-style-type: none; text-align: center; } | |
| .center-items .item { display: inline-block; vertical-align: top; } | |
| <div class="center-items"> | |
| <div class="item">1</div> | |
| <div class="item">2</div> | |
| <div class="item">3</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
| var youtube_video = $('iframe'); | |
| var url = youtube_video.attr('src'); // 1. First get the iframe URL | |
| youtube_video.attr('src', ''); // 2. Then assign the src to null, this then stops the video been playing | |
| youtube_video.attr('src', url); // If you need to reassign the URL back to your iframe, so when you hide and load it again you still have the link |
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
| <!DOCTYPE html> | |
| <!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> | |
| <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> |
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
| $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | |
| $actual_page = $_SERVER[REQUEST_URI]; |
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
| // Run this SQL statement (in the mysql client, phpMyAdmin, or wherever) to retrieve all the MyISAM tables in your database. | |
| // Replace value of the name_of_your_db variable with your database name. | |
| // Then, copy the output and run as a new SQL query. | |
| SET @DATABASE_NAME = 'name_of_your_db'; | |
| SELECT CONCAT('ALTER TABLE `', table_name, '` ENGINE=InnoDB;') AS sql_statements | |
| FROM information_schema.tables AS tb | |
| WHERE table_schema = @DATABASE_NAME | |
| AND `ENGINE` = 'MyISAM' |
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
| // http://subhra.me/codeigniter-pagination-url-get-parameters/ | |
| if (count($_GET) > 0) $config['suffix'] = '?' . http_build_query($_GET, '', "&"); | |
| $config['first_url'] = $config['base_url'].'?'.http_build_query($_GET); |