• Hi. I can’t figure out step 3 of the plugin installation, in order to get the slider to appear on the homepage. I am using PageLines and can’t figure out which template to edit. My index.php template only has the below, that’s it. When I paste the Slider code at the end of that page it breaks the whole site. Can’t figure where else it might go, and doesn’t seem to be in any of the PageLines options in Dashboard.

    Any ideas?
    Thanks

    <?php
    /*
    This theme is Copyright (C) 2008-2010 Andrew Powers, PageLines.com (andrew AT pagelines DOT com)

    Licensed under the terms of GPL.

    */

    setup_pagelines_template();

    https://www.ads-software.com/extend/plugins/wp-featured-content-slider/

Viewing 4 replies - 1 through 4 (of 4 total)
  • At least you index.php should en with a ?> to end the initial <?php. Try inserting the code from step 3 right before that?

    Thread Starter socialpyramid

    (@socialpyramid)

    Hi. Thanks for the response! That was helpful to learn, and that did make the slider appear, although I could only get it at the very top or very bottom of the page, not where I want it (below the nav).

    I tried adding in a hook to say pagelines_after_primary-nav but didn’t get that to work. I don’t really know how hooks work, if you need to install something somewhere else. I just tried typing that with the plugin code (the plugin is installed), and that didn’t do anything.

    There’s a suggestion here to put it on the loop page https://www.pagelines.com/forum/topic/8611-plugin-php-code-in-template/, but I don’t see anywhere on that page to put it. Nothing there seems to relate to just the homepage or the nav, it seems like all actual post stuff. If I paste the code at the top of the loop page it puts the slider on every page of the site, which is no good.

    Thanks

    You’re welcome.
    I can’t really help you with the other stuff, as I just try stuff out myself, too. My amateur way of doing stuff is to 1) find some text on the site close to where I want to insert something 2) look at the source of the given page, and search for the text I just located 3) find a command right around the text that looks unique-ish — might be some <div class=”something”> or something like that. 4) copy the “something” 5) search the theme folder for files that contain the “something”. (if too many, try finding different piece of code). 6) Open each file, find where it says “something” and see if that looks like a place to insert what I want to insert. 7) If so, then insert something (I usually just write a little text, like “test!”. 8) upload/update and check if it’s how I like it. 9) realize it isn’t. 10) try changing something in some of the steps…

    I wish I could be more helpful…

    Thread Starter socialpyramid

    (@socialpyramid)

    Good advice, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Featured Content Slider] Can't figure out where to put the code to make slider appe’ is closed to new replies.