WordPress Template files (Understrap)
Blog Post : single.php Blog List: index.php loop-templates/content.php
Blog Post : single.php Blog List: index.php loop-templates/content.php
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ Php version? 5.6 to 7.2 mbstring should be check in php extension It work with 7.0 on WHM with WHC
WORDPRESS
1 2 3 4 5 6 7 8 |
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] |
HTML WEBSITE WWW
1 2 3 4 5 6 7 |
RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] |
HTML WEBSITE NON-WWW
1 2 3 4 5 6 7 |
RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] |
1 2 3 4 5 6 7 |
jQuery('.section-container .img-logo').each(function() { if (jQuery(this).isOnScreen()) { jQuery(this).addClass('is-on-screen'); } else { jQuery(this).removeClass('is-on-screen'); } }); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
wp_reset_query(); // get_posts in same custom taxonomy $postlist_args = array( 'posts_per_page' => -1, 'orderby' => 'menu_order', 'post_type' => 'etudes_de_cas' ); $postlist = get_posts( $postlist_args ); // get ids of posts retrieved from get_posts $ids = array(); foreach ($postlist as $thepost) { $ids[] = $thepost->ID; } // get and echo previous and next post in the same taxonomy $thisindex = array_search($post->ID, $ids); $previd = $ids[$thisindex-1]; $nextid = $ids[$thisindex+1]; if ( empty($previd) ) { $lastPos = count($ids); $previd = $ids[$lastPos-1]; } if ( empty($nextid) ) { $nextid = $ids[0]; } |
1 2 3 4 5 6 7 8 9 10 11 |
/** FORM RESPONSE **/ div.wpcf7-validation-errors { border: 2px solid #f7e700; background-color: #f7e700; color: #000000; } div.wpcf7-mail-sent-ok { border: 2px solid #398f14; background-color: #398f14; color: #ffffff; } |
https://github.com/angular/angular-cli https://github.com/angular/angular-cli/wiki
Build in a /dist folder
1 |
ng build |
1 |
ng build --target=production --environment=prod --base-href / |
Add file to commit
1 |
git add . |
Do a commit
1 |
git commit -a -m "modification description" |
Push the project
1 |
git push origin master |