Author: Nemanja Radevic

Wordpress expert Joomla expert Front end development expert Warp Framework expert Responsive design

Excerpt of specific page in text php widget

Prerequisite: install and enable 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>’; ?>

Font Embedding in yootheme or copy /themes/yoo_vida_wp/less/customizer.json to /custom/less/customizer.json and if the file doesn’t exist create it then go to google and find what you want to add and edit the link accordingly to the font you want to edit or get the fonts from and on top of custom.css @import url(,600,700,700italic,600italic,400italic,800,800italic&subset=latin,greek); .uk-navbar-nav > li > a { font-family: ‘Open Sans’, sans-serif; } body { color: #666666;font-family: ‘Open Sans’, sans-serif; }
© Radevic Team. All rights reserved. Powered by YOOtheme.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.