Forum Replies Created
- AuthorPosts
- September 11, 2013 at 11:50 PM in reply to: Different Slider for different pages with same template #1125
Okay, would it not be better to respond with testing results? Do you have any results and can you pinpoint the issue?
September 10, 2013 at 9:06 AM in reply to: Different Slider for different pages with same template #1116the quotation marks are straight.
I think the IF statement is broken.
Is this line correct: if ( is_home() && $options[‘slider’] ) ?
The original code works fine. but for some reason the code as listed earlier results in a blank page.September 10, 2013 at 7:16 AM in reply to: Different Slider for different pages with same template #1113I have been able to make a child theme work with two different sliders using the single line php code. When I try to use the php if condition code from your reference I get a blank page using this code:
<?php
if ( is_home() && $options[‘slider’] ) {
echo ‘<div id=”slider”>’.do_shortcode(‘[nivoslider slug=”slider”]’).'</div>’;
elseif ( is_page(39) ) {
echo ‘<div id=”slider”>’.do_shortcode(‘[nivoslider slug=”slider2″]’).'</div>’;
} else {
}
?>I know the page id is 39 for the second page. The static index page is listed a page id 2. I can not seem to get the correct if statement to work.
I think my problem is that you have to TURN ON with the check boxes the function below. I missed the orientation of the check boxes as switches for the lower functions.
With regard to how I am entering these options, this is your page – maybe you could provide an example for each of the three questions. I have not been able to enter the custom contact information. I have tried plain text in the box, I have tried –
<div class="details">123.456.7890 | <a href="mailto:email@website.com">email@website.com</a></div> -
in the box and nothing seems to load. Could you supply a few examples.
The goal was to set the size of the page to 800 px. What does “Maximum Layout Width” mean, and how do you set the size of the pages on the site?
- AuthorPosts