Forum Replies Created
-
AuthorPosts
-
[email protected]
MemberYeah I can mark as resolved. In the interest of not creating another thread. Can I use two conditional tags in one function?
ex. is_page(!Home,!golf-course-homes)
[email protected]
Memberwell that worked!
any reason why that worked and mine didnt?[email protected]
MemberOh my goodness!! I am so hasty! I ust put quotes around the whole thing! hahaha. wow sorry for that. Lets close those quotes properly and see if it works.
add_action('genesis_before_loop','golfcourseslider');
function golfcourseslider() {
if (is_page('golf-course-homes')) {
add_action('genesis_after_header','golf_course_slider');
}
}function golf_course_slider(){
echo do_shortcode('[layerslider id="4"]');
}that is what I have now. Still not working.
[email protected]
Memberok added the single quotation marks and now my code looks like this.
add_action('genesis_before_loop','golfcourseslider');
function golfcourseslider() {
if (is_page('golf-course-homes')) {
add_action('genesis_after_header,golf_course_slider');
}
}function golf_course_slider(){
echo do_shortcode('[layerslider id="4"]');
}I honestly dont think that I would like to use the shortcode for the layer slider. the code is also given for php "<?php layerslider(4) ?>"
The revised code still did not work however. The slug is golf-course-homes. not sure if it has to be in quotes or anything.
Is there a specific place within the functions.php file where this section of code needs to be placed?
[email protected]
Memberoh doh! I am a PHP infant. Thanks so much for pointing this out.
[email protected]
Membertried this too
add_action('genesis_before_loop','golfcourseslider'); function golfcourseslider() { if (is_page('golf-course-homes')) { add_action(genesis_after_header,golf_course_slider); } } function golf_course_slider(){ echo do_shortcode('[layerslider id="4"]'); }
[email protected]
Memberthis is what i have so far.
it didnt work though
add_action('genesis_before_loop','golfcourseslider');function golfcourseslider() {
if (is_page('golf-course-homes')) {
add_action(genesis_after_header,golf_course_slider);
}
}function golf_course_slider(){
layerslider(4);
}[email protected]
MemberIs there really no one that has ever had this issue before?
[email protected]
Memberbump
[email protected]
Memberdo you have a link to the site so I can check out the styling?
[email protected]
MemberHas no one experienced this before? Not heard of this? I am really stuck here and google is not pulling anything in regards to this being a Genesis issue. I am not getting any server errors when saving my menus either so I am leaning towards this being some sort of function of the theme.
[email protected]
MemberI have read a few threads where this has been answered but I am still stuck on it. The thread I was looking on was closed so I could not ask my question there. I hope that I will be able to fix this. I am so stuck lol.
SO I added this to my .htaccess file
<IfModule mod_php5.c>php_value max_input_vars 5000
</IfModule>
now my .htacces file reads like this
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule><IfModule mod_php5.c>
php_value max_input_vars 5000
</IfModule>
# END WordPressThat did not fix the issue.
I also tried to make this change by editing my php.ini file
it was listed as max_input_vars = 1000 with a semicolon in front
i changed it to max_input_vars = 9000 and removed the semicolon.
Went into the site and attempted to resave the menu with location box for primary navigation checked. THe page reloads after save and the box remains unchecked. Ugh, pulling my hair out over this.
-
AuthorPosts