This file contains 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
<p style="font-family: Georgia, serif;">Georgia Serif font</p> | |
<p style="font-family: verdana, sans-serif;">Verdana font</p> |
This file contains 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
if ( ! empty( $instance['categories'] ) && isset( $instance['categories'][0] ) ) { | |
$first_cat_id = $instance['categories'][0]; | |
echo $before_title . '<a href="' . get_category_link( $first_cat_id ) . '">' . get_cat_name( $first_cat_id ) . '</a>' . $after_title; | |
} elseif ( ! empty( $title ) ) { | |
echo $before_title . $title . $after_title; | |
} |
This file contains 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
Open this file: library/front.php | |
Line 175 | |
Change: | |
wp_enqueue_script('kopa-google-api', 'http://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js'); | |
To: | |
wp_enqueue_script('kopa-google-api', 'https://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js'); | |
---- |
This file contains 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
if(typeof Object.create!=="function"){ | |
Object.create=function(o){ | |
function F(){ | |
}; | |
F.prototype=o; | |
return new F(); | |
}; | |
} | |
var ua={toString:function(){ | |
return navigator.userAgent; |
This file contains 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
1) In your theme directory, open this file: content.php | |
2) Find the block like this: | |
<div class="entry-thumb hover-effect"> | |
<div class="mask"> | |
<a class="link-detail" href="<?php the_permalink(); ?>" data-icon=""></a> | |
</div> | |
<img src="<?php echo $thumbnail[0]; ?>" alt="<?php the_title(); ?>"> | |
</div> |
This file contains 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
1) Open this file: library/templates/format-single.php | |
Replace the line 21: | |
<div class="entry-thumb"><?php the_post_thumbnail( 'kopa-single-featured-size' ); ?></div> | |
By the line: | |
<div class="entry-thumb"><?php the_post_thumbnail( 'large' ); ?></div> | |
You can do the same for other post format template files: | |
library/templates/format-single-video.php | |
library/templates/format-single-audio.php |
This file contains 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
class Kopa_Widget_Posts_List extends WP_Widget { | |
function __construct() { | |
$widget_ops = array('classname' => 'kopa-latest-post-widget', 'description' => __('Display a posts list widget', kopa_get_domain())); | |
$control_ops = array('width' => 'auto', 'height' => 'auto'); | |
parent::__construct('kopa_widget_posts_list', __('Kopa Posts List', kopa_get_domain()), $widget_ops, $control_ops); | |
} | |
function widget($args, $instance) { | |
extract($args); | |
$title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); |
OlderNewer