Digital experiences for all disciplines
Forum Replies Created
-
-
Hi,
I’m trying to do the same thing in Flexform, can you help?
I want the text to be taken form the main post content so I don’t have to copy and paste text into the custom excerpt box.
I use the following settings:
Show item excerpt: Yes
Excerpt Length: 75
Content Output: ExcerptThanks, Pete
Hi Mohammad,
Thanks, that’s sorted it 🙂
You’re a legend!
Pete
Hi,
It’s where the first screen shot I sent you.
Here’s a link to a blog page where they are displaying correctly: http://www.displaywizard.co.uk/display-hub/gantry-exhibition-systems-buy/
Hi Mohammad,
No, the code above is that standard Flexform code. Basically I’m trying to call the same social icons that are used on the blog posts.
Here’s a page where they are meant to be active: http://www.displaywizard.co.uk/display-hub/expert-guide/10-great-reasons-to-exhibit-at-a-trade-show/
Hi Mohammad,
Still don’t get any social share buttons showing up.
I’ve added this just after the code you mentioned above:
<div class="share-links clearfix"> <div class="share-text"><?php _e("Share:", "swiftframework"); ?></div> <div class="share-buttons"> <span class='st_facebook_hcount' displayText='Facebook'></span> <span class='st_twitter_hcount' displayText='Tweet'></span> <span class='st_googleplus_hcount' displayText='Google +'></span> <span class='st_linkedin_hcount' displayText='LinkedIn'></span> <span class='st_pinterest_hcount' displayText='Pinterest'></span> </div> <a class="permalink item-link" href="<?php the_permalink(); ?>"><i class="icon-link"></i></a> <a class="email-link item-link" href="mailto:?subject=<?php the_title(); ?>&body=<?php the_permalink(); ?>" title="Share by Email"><i class="icon-envelope-alt"></i></a> </div>
Sorry I haven’t uploaded the file as it won’t let me but I’m trying to add it after line 116.
Code looks like this:
<!-- OPEN page --> <?php if (($sidebar_config == "left-sidebar") || ($sidebar_config == "right-sidebar")) { ?> <div <?php post_class('clearfix span8'); ?> id="<?php the_ID(); ?>"> <?php } else if ($sidebar_config == "both-sidebars") { ?> <div <?php post_class('clearfix row'); ?> id="<?php the_ID(); ?>"> <?php } else { ?> <div <?php post_class('clearfix'); ?> id="<?php the_ID(); ?>"> <?php } ?> <?php if ($sidebar_config == "both-sidebars") { ?> <div class="page-content span6"> <?php the_content(); ?> </div> <aside class="sidebar left-sidebar span3"> <?php dynamic_sidebar($left_sidebar); ?> </aside> <?php } else { ?> <div class="page-content clearfix"> <?php the_content(); ?> <div class="link-pages"><?php wp_link_pages(); ?></div> </div> <div class="share-links clearfix"> <div class="share-text"><?php _e("Share:", "swiftframework"); ?></div> <div class="share-buttons"> <span class='st_facebook_hcount' displayText='Facebook'></span> <span class='st_twitter_hcount' displayText='Tweet'></span> <span class='st_googleplus_hcount' displayText='Google +'></span> <span class='st_linkedin_hcount' displayText='LinkedIn'></span> <span class='st_pinterest_hcount' displayText='Pinterest'></span> </div> <a class="permalink item-link" href="<?php the_permalink(); ?>"><i class="icon-link"></i></a> <a class="email-link item-link" href="mailto:?subject=<?php the_title(); ?>&body=<?php the_permalink(); ?>" title="Share by Email"><i class="icon-envelope-alt"></i></a> </div> <?php if ( comments_open() ) { ?> <div id="comment-area"> <?php comments_template('', true); ?> </div> <?php } ?> <?php } ?> <!-- CLOSE page -->
Hi Mohammad,
Just a the end of the page content, see the screen shot.
I’ve also added the template file.
Thanks. Pete
Hi Mohammad,
Thanks, that sorted it. Forgot to add this to the top of the file:
<?php /* Template Name: My Custom Page */
What about my question about the social share links?
Thanks, Pete
-