Forum Replies Created

Viewing 8 posts - 16 through 23 (of 23 total)
  • Posted in:
  • in reply to: Automatic Excerpt Generation #77928
    display-wizard
    Member
    Post count: 27

    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: Excerpt

    Thanks, Pete

    in reply to: Custom page templates and social sharing buttons #75064
    display-wizard
    Member
    Post count: 27

    Hi Mohammad,

    Thanks, that’s sorted it 🙂

    You’re a legend!

    Pete

    in reply to: Custom page templates and social sharing buttons #75060
    display-wizard
    Member
    Post count: 27

    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/

    in reply to: Custom page templates and social sharing buttons #75057
    display-wizard
    Member
    Post count: 27

    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/

    in reply to: Custom page templates and social sharing buttons #75051
    display-wizard
    Member
    Post count: 27

    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>
    in reply to: Custom page templates and social sharing buttons #75041
    display-wizard
    Member
    Post count: 27

    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 -->
    in reply to: Custom page templates and social sharing buttons #75035
    display-wizard
    Member
    Post count: 27

    Hi Mohammad,

    Just a the end of the page content, see the screen shot.

    I’ve also added the template file.

    Thanks. Pete

    in reply to: Custom page templates and social sharing buttons #75007
    display-wizard
    Member
    Post count: 27

    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

Viewing 8 posts - 16 through 23 (of 23 total)