• Hi,
    Wondered if someone could help.

    I’m currently using the NewsPro theme and wanted to know how i would add the Featured Factory plugin into an area of the theme that is not available via the widgets section.

    The area of the theme i want to add the plugin to is the left sidebar – but there is no option for this area via the widgets section in my admin panel.

    Normally with plugins the author might tell you to add a string of code to your themes php file – however for this particular plugin it doesn’t tell me or give me an idea of what code i would use if i wanted the widget within a non-widgetized area of my theme.

    i’m guessing it’s this section within the home.php file need to place the code in if i want the plugin to show – but the question is – what code do i insert?

    <!-- Container -->
    	<div id="content-wrap">
    
    		<!-- Left Column -->
    		<div id="leftcol-wrapper">
    			<div id="leftcolumn">
    				<h2><?php echo $theme_options["titleLeftColumn"]; ?></h2>
    				<?php query_posts('cat='.$theme_options["leftColCatID"].'&showposts='.$theme_options["leftColPostCount"]); ?>
    				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    				<div class="latestnewspost">
    					<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    					<p><?php print string_limit_words(get_the_excerpt(), 17); ?>...</p>
    				</div>
    				<?php endwhile; else : ?>
    				<?php endif; ?>
    				<?php wp_reset_query(); ?>
    
    				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('GabWidget-Area-4') ) : ?>
    				<?php endif; ?>
    
    				<?php include (TEMPLATEPATH . '/160x600ad.php'); ?>
    
    				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('GabWidget-Area-5') ) : ?>
    				<?php endif; ?>
    			</div>
    		</div>
    		<!-- /Left Column Wrapper -->

    My html/php is fairly basic – if i know what code to place and within what file i’m fine – so any help with this would be greatly appreciated.

    Thanks in advance ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fr34k123

    (@fr34k123)

    anyone?

    Actually, the plugin author did say to add the plugin in widget per
    https://www.ads-software.com/extend/plugins/factory-featured/installation/
    In your theme’s code above, you have two areas where you could add your Feature Factory plugin:
    1) GabWidget-Area-4 (before 160 x 600 ad)
    2) GabWidget-Area-5 (afeter 160 x 600 ad)

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('GabWidget-Area-4') ) : ?>
    <?php endif; ?>
    <?php include (TEMPLATEPATH . '/160x600ad.php'); ?>
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('GabWidget-Area-5') ) : ?>
    <?php endif; ?>

    So, Go to Dashboard > Appearance > Widget and add the featured plugin into either widget area.

    Thread Starter fr34k123

    (@fr34k123)

    Hi,
    thanks for the reply.

    I actually wanted the plugin to display above where it states latest news – and there doesn’t appear to be a widget area for that.

    Ive activated the plugin anyhow and am trying to add a test post but cannot get the image to display (all i get is text) – i’m new to all this so am still learning.

    It states in the installation:

    Posts must have a custom field image in the Uploads folder and be called using the same Custom Field Image Name you set for the widget.

    I’m not entirely sure what this means?

    Any help is as ever is greatly appreciated (it’s prob something really simple i’m not doing and will possibly end up making me look really dense)

    I actually wanted the plugin to display above where it states latest news

    Either create a new widget or simply just move one of the widgets to above the latest news like so:

    <div id="leftcolumn">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('GabWidget-Area-4') ) : ?>
    <?php endif; ?>
    <h2><?php echo $theme_options["titleLeftColumn"]; ?></h2>
    etc
    etc

    Custom Field

    Read up on this – https://codex.www.ads-software.com/Custom_Fields#Usage
    re how to add custom fields in your Write Panel. You have to add same info in your widget.

    Thread Starter fr34k123

    (@fr34k123)

    Hi,
    thanks for the quick reply.

    I did create a new custom field called reviews – i added this exactly the same within the widget area. I then uploaded the image i wanted displayed and copied the image url and pasted it into the posts custom vale under the key i’d created – i.e

    custom key name inside widget settings: reviews
    Custom Key created withgin the new post: reviews
    Custom key value within the post: url to the image i just uploaded

    I hit save and preview post but all i get is the text.

    the readme/ installation for this plugin though states i need a custom field image that must be my uploads folder and that the image must be named the same as the custom name set up within the widget.

    what i dont understand is what image do i upload to my uploads folder? and once i have uploaded this image exactly what will i have to do in order for other images to display?

    again sorry if i sound like a numpty, but i just dont get it at all.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘adding the Featured Factory plugin into a non-widget enabled area of a theme’ is closed to new replies.