Tag: wordpress tutorial

Disable srcset in WP

Lately i noticed that pictures i uploaded are a bit blurry and when i checked my code using firebug i noticed some srcset in my images
This is a new feature in WP used for responsive images but i guess they need to work on it a bit. If you wish to disable it

Continue reading

Default .htaccess for WP

Make a .htaccess if you already don t have in the root of your public_html and past the following code inside if you have WordPress already installed # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress

Excerpt of specific page in text php widget

Prerequisite: install and enable https://wordpress.org/plugins/php-text-widget/ excerpt insert the following code in a text widget, notice $page_id = 803; you need to make this number according to your page ID class=”uk-button uk-button-primary” this applies to yootheme warp7 framework Read more -> this can be changed to something else like “View  More” or change language <?php $page_id = 803; $page_data = get_page( $page_id ); $content = $page_data->the_excerpt; $title = $page_data->post_title; echo ‘<h3>’. $page_data->post_title .'</h3>’; echo the_excerpt( $page_id ); echo ‘<a class=”uk-button uk-button-primary” href=”‘.get_permalink( $post_id ).'”>Read more</a>’; ?>
© Radevic Team. All rights reserved. Powered by YOOtheme.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.