• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

[email protected]

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • May 22, 2015 at 7:19 pm in reply to: How to add elements to individual pages? #153363
    [email protected]
    Member

    Yeah 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)

    May 22, 2015 at 6:40 pm in reply to: How to add elements to individual pages? #153360
    [email protected]
    Member

    well that worked!
    any reason why that worked and mine didnt?

    May 22, 2015 at 6:17 pm in reply to: How to add elements to individual pages? #153349
    [email protected]
    Member

    Oh 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.

    May 22, 2015 at 6:16 pm in reply to: How to add elements to individual pages? #153347
    [email protected]
    Member

    ok 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?

    May 22, 2015 at 6:13 pm in reply to: How to add elements to individual pages? #153346
    [email protected]
    Member

    oh doh! I am a PHP infant. Thanks so much for pointing this out.

    May 22, 2015 at 5:38 pm in reply to: How to add elements to individual pages? #153335
    [email protected]
    Member

    tried 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"]');
    }
    May 22, 2015 at 5:23 pm in reply to: How to add elements to individual pages? #153328
    [email protected]
    Member

    this 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);
    }

    April 7, 2015 at 10:10 am in reply to: Menu Not Saving(menu item limit??) #146924
    [email protected]
    Member

    Is there really no one that has ever had this issue before?

    April 6, 2015 at 11:05 pm in reply to: Menu Not Saving(menu item limit??) #146880
    [email protected]
    Member

    bump

    April 6, 2015 at 9:31 pm in reply to: resizing of featured images in foodiepro #146869
    [email protected]
    Member

    do you have a link to the site so I can check out the styling?

    April 6, 2015 at 8:30 pm in reply to: Menu Not Saving(menu item limit??) #146867
    [email protected]
    Member

    Has 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.

    April 6, 2015 at 2:42 pm in reply to: Menu Not Saving(menu item limit??) #146846
    [email protected]
    Member

    I 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 WordPress

    That 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.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble