-
jalex11Participant
I want to also put the slider on a static home page. I added the “lines 3-5 code” into a copied page.php file in my Child Theme folder. However, when I tried to make a copy of the functions.php to my child folder, I got a fatal error. Yikes! Took that back out. I am not seeing the slider of any sort on my static home page yet.
Then I decided I’d gamble and make the change in the original functions.php file in the Parent: “….change line 573 in functions.php. Basically it only works when is_home() but by adding is_front_page() to the condition, it worked.”
BUT…line 573 in the file I am looking at does not have anything “is_home()”….line 590 was this:
590
$(‘#slider’).flexslider({
directionNav: false,
keyboardNav: false
});Is this where I need to make a change? I tried simply replacing “is_home()” with “is_front_page()” but that didn’t work. What am I missing?
Jos KleverParticipantIn the last version of Esplanade the line number has become 590 indeed!
In my child theme I didn’t use page.php, but front-page.php instead. This is higher in the hierarchy and it makes the slider appear on the front page only. See also: http://codex.wordpress.org/Template_HierarchyIn my functions.php I redefined the complete function by copying and changing:
function esplanade_call_scripts() { … } (line 564 – 609)
where the condition in line 590 is:
( (is_home() || is_front_page()) && ! is_paged() )jalex11ParticipantWow. Ok. I’ll start with trying to create the front-page.php file. What the heck goes in it? Do I just copy what’s in the theme’s page.php and add those lines 3-5 as referenced earlier in this thread? (By the way, THANK YOU for help!!!)
Jos KleverParticipantYou can use the contents of page.php and add the 3 lines. Just take a look at the rest of the contents of that file to identify the elements. You can delete what you don’t need. Just give it a try! 🙂
CissiParticipanthmmm… I use wordpress only online and do not have it installde on my computer, and I do not succeed in installing it. thereby I can not use the editor you recomended :(. But im going to try the other program you recomended… Or can I get the editor in the webbased wordpress?
Jos KleverParticipant@Cissi – You don’t need to install WordPress on your computer. You only download a copy of the files to your computer (with a FTP program like FileZilla), edit the files locally and upload them to your site again. If this is new for you, then you should try the plugin I mentioned. An editor like Notepad++ is a program for on a computer, not for on a website.
I also would like to advise you to get some more basic knowledge about building websites before you try to learn the more advanced stuff…CissiParticipantThe installinstruktions on the editor for wordpress says to put in the wordpressfolder, thats hard when you dont have one… but I tried the notepad++ and that worked fine :).
Is this the right change?
$(‘#slider’).flexslider({
directionNav: false,
keyboardNav: falseCissiParticipantbut.. som of the text disapeared….
$(‘#slider’).flexslider({
directionNav: false,
keyboardNav: falseCissiParticipantahhh… It takes away the importent line…
()
$(‘#slider’).flexslider({
directionNav: false,
keyboardNav: false
I added the ( ) at the start and the end to hopefully get it the showCissiParticipant?php if( is_front_page() && ! is_paged() ) : ?
$(‘#slider’).flexslider({
directionNav: false,
keyboardNav: falseJos KleverParticipantYou totally lost me with the editor “installation”… The question about which lines you have to change are already answered in this topic, so I can’t give you new information based on this…
jalex11Participant@Cissi I downloaded a plugin within WordPress as a code editor. It might help you. It color-codes it and shows line numbers. It’s called Advanced Code Editor. Super easy, just install plugin then activate! When you open a file under the Appearance -> Editor page, the plugin automatically works.
jalex11Participant@Jos It’s there!! Awesome!! Ok, last problem is that the slider still shows on my separate Blog page (only the last post, it doesn’t show multiple sticky’s with the buttons on the bottom right).
Any other ideas how to get the slider off that Blog page?
Jos KleverParticipantI think it’s time for a link to your site, so I can have a look.
Maybe you have the code for the slider in index.php (line 3-5)? Copy index.php to your child theme and remove the lines.
Tagged: post slider
You must be logged in to reply to this topic.