Hello! I do not speak English and I use a translator to communicate with you.
On my site, set your theme ?morphic?, now the question arose. I can not specify the font style to display it in counting the number of page views. You are in the design theme used fonts ?Genericons?, I can not prescribe the style to display the icon .genericon-show \ f403. How can I do that?
I want to add the word “views” this style and bring it into this code
<div class=”entry-meta”>
<?php nuthemes_posted_on(); ?>
<?php if ( ! post_password_required() && ( comments_open() || ‘0’ != get_comments_number() ) ) : ?>
<span class=”comments-link”><?php comments_popup_link( __( ‘Leave a comment’, ‘nuthemes’ ), __( ‘1 Comment’, ‘nuthemes’ ), __( ‘% Comments’, ‘nuthemes’ ) ); ?></span><span class=”views”> Просмотры: <?php echo get_post_meta ($post->ID,’views’,true); ?></span>
<?php endif; ?>
<!– .entry-meta –></div>
The code to display output:
<?php echo get_post_meta ($post->ID,’views’,true); ?>
Here’s the code that creates the function of ” Views “:
/ * Count the number of visits pages * /
add_action(‘wp_head’, ‘postviews’);
function postviews() {
/ * Settings * /
$meta_key = ‘views’;// The key meta fields where views will be recorded .
$who_count = 1;// Whose visits count? 0 – All. 1 -Guests . 2 -zaregistrirovanyh users.
$exclude_bots = 1;// Exclude Bots : 0 – no . 1 – yes.
/ * Settings * /
global $user_ID, $post;
if(is_singular()) {
$id = (int)$post->ID;
static $post_views = false;
if($post_views) return true; //1 time for the flow
$post_views = (int)get_post_meta($id,$meta_key, true);
$should_count = false;
switch( (int)$who_count ) {
case 0: $should_count = true;
break;
case 1:
if( (int)$user_ID == 0 )
$should_count = true;
break;
case 2:
if( (int)$user_ID > 0 )
$should_count = true;
break;
}
if( (int)$exclude_bots==1 && $should_count ){
$useragent = $_SERVER[‘HTTP_USER_AGENT’];
$notbot = “Mozilla|Opera”;
$bot = “Bot/|robot|Slurp/|yahoo”;
if ( !preg_match(“/$notbot/i”, $useragent) || preg_match(“!$bot!i”, $useragent) )
$should_count = false;
}
if($should_count)
if( !update_post_meta($id, $meta_key, ($post_views+1)) ) add_post_meta($id, $meta_key, 1, true);
}
return true;
}
I want to bring in the entry-meta icon “Eye ? (\ f403) next to the word “View” next to the word will be displayed number posischeny . how to do it?
I want to have kind of code :
<div class=”entry-meta”>
<?php nuthemes_posted_on(); ?>
<?php if ( ! post_password_required() && ( comments_open() || ‘0’ != get_comments_number() ) ) : ?>
<span class=”comments-link”><?php comments_popup_link( __( ‘Leave a comment’, ‘nuthemes’ ), __( ‘1 Comment’, ‘nuthemes’ ), __( ‘% Comments’, ‘nuthemes’ ) ); ?></span><span class=”views”> View: <?php echo get_post_meta ($post->ID,’views’,true); ?></span>
<?php endif; ?>
<!– .entry-meta –></div>
Before the word ” views ” should stand icon . The word ” Views ” icon and must have one style that is registered for the entry-meta.
I would be grateful if you will not refuse to help. I say thank you in advance for the help !
]]>Hi Morphic-Team,
the menu is only showing up when I’m logged into wordpress. This is true for Chrome (37), IE (11) and FF (32.0.3). All I tried, is not working. If you want to take a look: https://ulrich-schroeders.de/
Keep up the great work; really love your design(s).
Kind regards,
Ulrich
tried this one in IE8. did not work same as in Chr or FF, not happy with how it works in IE8.
unfortunately, many of my users use IE8 so need to find a theme which works in IE8. although I like this theme, it is not possible to use it, keep looking I guess.
Al
]]>i used event manager plugin
on my event page, there is 2 date format:
-publish date
-event date
can i remove another one?
https://events.maths.my.id/
i use <img> tag in header section instead of <h1> – what and where i should change to make my logo responsive (scalable on small devices)?
]]>hello, where i can change date format – now i have some issue with dates in posts – there a 2 dates, one after another. take a look:
]]>
I have no knowledge of how to change themes, but would very much like to stop the automatic hyphenation that is performed on posted text. Is there an easy way to do this?
Sample of hyphenation…
as well as 10 exclu-
sive games.
How do I make it do this…
as well as 10
exclusive games.
Many thanks for any help.
]]>Hello,
since there is no template for a no-sidebar-page I tried to make one myself. So far the actual ‘no-sidebar-page.php’ works but there are still css adjustmens I don’t get along with.
To use the full width of the side my code looks like this:
.page-template-no-sidebar-page-php #content, .page-template-no-sidebar-page-php .post {
width: 990px;
}
However, there still is the background color of the sidebar to change that my code looks like this:
.page-template-no-sidebar-page-php #content, .page-template-no-sidebar-page-php .post, page-template-no-sidebar-page-php site-sidebar .widget {
width: 990px;
background-color: #fff;
}
Sadly, this doesn’t work because if I change the background-color the background of the content moves like 10px to the left.
Want to see it in action? Click Here
]]>