I have sacrificed a while to implement the news beta version and...? It's working great
I just had to add a conditional content for facebook likes and comments in the template instead of using the nm-single-bottom components, but that doesn't matter at all when there are these nice function to ensure everything's right.
The OpenGraph implementation is now a piece of cake.
If the post image exist, I have two images to choose from, if not, just the second one. The same with description, if it's a post what I'm sharing, share it's excerpt, otherwise it's a page so I share its excerpt.
And the last great point - H1 on the post detail, H2 on the main news page. That's how it's supposed to be
Thank you once again - works flawlessly. I guess you have enough points what you can work on if you ever feel bored
I just had to add a conditional content for facebook likes and comments in the template instead of using the nm-single-bottom components, but that doesn't matter at all when there are these nice function to ensure everything's right.
Code:
<?php if ((return_page_slug()=='clanky') && !(nm_is_home())) { ?>
... content shown in the posts only ...
<?php } ?>
The OpenGraph implementation is now a piece of cake.
If the post image exist, I have two images to choose from, if not, just the second one. The same with description, if it's a post what I'm sharing, share it's excerpt, otherwise it's a page so I share its excerpt.
Code:
<?php if (nm_post_has_image()) { ?>
<meta property="og:image" content="<?php nm_post_image_url(300,300,1); ?>">
<?php } ?>
<meta property="og:image" content="<?php get_theme_url(); ?>/images/facebook-300-300.png">
<meta property="og:description" content="<?php nm_post_excerpt(225) or get_page_excerpt(225); ?>">
And the last great point - H1 on the post detail, H2 on the main news page. That's how it's supposed to be
Thank you once again - works flawlessly. I guess you have enough points what you can work on if you ever feel bored
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple