-
Featured Content Gallery
Hi,,
I installed the Featured Content Gallery Plugin and I don't know where should I add the following code
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
I want it to show only in the home page.
Thank you very much!!!
Gabriel
-
There are a couple of ways of doing this.
One is to edit the Socrates header.php file and add this code manually, and then remember to update it when you change or update the theme.
The second, which would be my preferred method, is to install the Header-Footer plugin and add the code to the relevant section in the plugin admin area.
-
Hi,
Thanks for the tip on the plugin unfortunately it didn't work.
I also try adding the code <?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?> in the header and it messed up all the website.
I also tried adding the code into the index.php file and it worked, but it shows the gallery on all the pages not only in my home page and I only want it to be in my home page.
Any suggestions?
Thanks!!!!
-
If the code is added correctly in the header there is hardly any way that it can mess up the site as it ir purely a php include, unless when the code was copied and pasted extra characters were added by your system which somtimes happens.
If you want to PM me a temporary login for your WP admin and FTP I can take a look for you.
-
Featured Content Gallery
Compusol, I tried using the header-footer plugin as well...didn't work. I did paste the code into the header.php...but now the featured content gallery shows on every page.
Any advice on how I can get this plugin to work on ONLY the home page?
Appreciate any advice.
Thanks,
-
Post the site URL so that we can take a look and see what the problem might be
-
Featured Content Gallery
Just a new site I'm working on for a friend....
http://www.workingwithburt.com/
This is what I have pasted into the header.php
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
As you can see...it's not lined up right...
How do I fix that...and how do I get it to show up only
on the home page?
Thanks,
Similar Threads
-
By jag66 in forum Graphics and Design
Replies: 2
Last Post: 01-13-2011, 03:56 PM
-
By fadzlyengan in forum Feature Requests
Replies: 0
Last Post: 07-13-2010, 08:11 AM
-
By gigiswealth in forum Official Support
Replies: 5
Last Post: 07-06-2010, 09:36 PM
-
By digital in forum Official Support
Replies: 1
Last Post: 07-02-2010, 11:29 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|