New Landing How can we help? Themeforest Theme Support Flexform Custom page templates and social sharing buttons

Viewing 15 posts - 1 through 15 (of 15 total)
  • Posted in: Flexform
  • #74817
    display-wizard
    Member
    Post count: 27

    Hi,

    I’ve noticed on Flexform you can only set the page template the ‘Default Template’ and I can’t see how to add custom ones.

    Is this possible?

    The reason I want to know is because I want to add the Social Sharing Links to a few pages so I need to be able to set a different page template.

    The code I’m using is:

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

    However when I use this all I get is the link and email options, any idea?

    Thanks, Pete

    #74978
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    First copy page.php and rename page-new.php and refer this article to create a page template http://codex.wordpress.org/Page_Templates . After this you can edit page-new.php as you want and this can be used to desired pages .

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #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

    #75018
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Where do you want to add social code ? Please attach a marked screenshot .

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #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

    #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 -->
    #75044
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can add code after this statement
    <div class="link-pages"><?php wp_link_pages(); ?></div>
    Thanks

    #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>
    #75053
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Are you using any java script code to display social icons ? Let me know website URL to debug .

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #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/

    #75059
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please attach a screenshot that where is social icons displaying ?
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #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/

    #75062
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please add this code also at new template file and let me know your feedback.
    <script type='text/javascript' src='http://w.sharethis.com/button/buttons.js' ></script>
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #75064
    display-wizard
    Member
    Post count: 27

    Hi Mohammad,

    Thanks, that’s sorted it ๐Ÿ™‚

    You’re a legend!

    Pete

    #75066
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome . I’m glad that issue resolved .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register