• 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

Graham

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 20 posts - 41 through 60 (of 91 total)
← 1 2 3 4 5 →
  • Author
    Posts
  • May 22, 2015 at 8:36 pm in reply to: TablePress CCS settings #153374
    Graham
    Member

    Absolutely, if someone disables it.. they're on their own and have to handle all of the CSS for TablePress independently. Yet the option is there.

    Of course, they could always enable it fully again in the future if needed, just by removing that filter.

    The intention was to highlight to the OP that TablePress uses its own CSS for the tables it creates, that particular CSS can be modified from within the plugin.

    Dashboard > TablePress > Plugin Options > Front End Options > Custom CSS


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 7:55 pm in reply to: How to add elements to individual pages? #153370
    Graham
    Member

    curses... wont let me edit.

    Meant this

    function child_maybe_do stuff() {
    	if ( !is_page('golf-course-homes')  &&  !is_home() ) {
    		// do stuff
    	}
    }

    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 7:46 pm in reply to: How to add elements to individual pages? #153369
    Graham
    Member

    A way of approaching what i think you are looking for might be something like this

    function child_maybe_do stuff() {
    	if ( !is_page('golf-course-homes')  ||  !is_home() ) {
    		// do stuff
    	}
    }
    

    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 7:28 pm in reply to: How to add elements to individual pages? #153364
    Graham
    Member

    Generally, for the sake of others, it's better to start another thread 🙂 .. yet ...

    Functions are defined, you can only use them in the way that they are built. If the function were built in a way that accepts two parameters, then yes you could ( the syntax isn't right in the above, but no matter in this example ).

    In this case, the is_page() function only accepts one parameter.. the $page parameter - as documented in the WordPress codex. The parameter for this function has to be of a certain type and format.

    Ref: https://codex.wordpress.org/Function_Reference/is_page

    It's all fun and games... happy Googling !


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 7:02 pm in reply to: How to add elements to individual pages? #153361
    Graham
    Member

    I used an earlier hook. By the time genesis_before_loop came along, it was too late. genesis_after_header had already happened

    Glad it worked 🙂 Are you able to mark as resolved?


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 6:32 pm in reply to: How to add elements to individual pages? #153353
    Graham
    Member

    Try this

    add_action('genesis_meta','child_maybe_show_slider');
    
    function child_maybe_show_slider() {
    	if (is_page('golf-course-homes')) {
    		add_action( 'genesis_after_header', 'golf_course_slider' );
    	}
    }
    
    function golf_course_slider(){
    	echo do_shortcode( '[layerslider id="4"]' );
    }

    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 6:06 pm in reply to: Remove double Archives/Categories Title? #153345
    Graham
    Member

    Related and answered from yesterday

    http://www.studiopress.community/topic/widget-title-displaying-twice/

    WordPress introduced the screen-reader-text css class back in 2009, but only recently ( version 4.2 ) have they committed to making more use of it.

    Theme and plugin developers need to adopt this more widely, it's been a while - and that goes for StudioPress too.

    http://webaim.org/techniques/css/invisiblecontent/


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 5:57 pm in reply to: How to add elements to individual pages? #153342
    Graham
    Member

    The single quotation marks are necessary

    add_action( 'genesis_after_header', 'golf_course_slider' );


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 5:46 pm in reply to: Parallax Blog Template Page #153338
    Graham
    Member

    Could you clarify?

    When I visit this link today http://logisticsnetworkdesign.com/blog/

    I see 5 blog posts all on the same page.. ok admittedly there isn't a line in between them, but they are there

    To clarify my side.. I did not say that StudioPress does not show all 5 blogs.

    It shows 5 of their blog posts at a time... not all of them, The total number of blog posts they could show is currently approx 250

    A continuous page showing all of the blog posts would be quite long 🙂


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 5:35 pm in reply to: Full width slider in header on individual pages? #153334
    Graham
    Member

    related?

    http://www.studiopress.community/topic/how-to-add-elements-to-individual-pages/


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 5:30 pm in reply to: How to add elements to individual pages? #153332
    Graham
    Member

    Perhaps a typo in your code above

    add_action(genesis_after_header,golf_course_slider);

    should read

    
    add_action( 'genesis_after_header', 'golf_course_slider' );

    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 5:28 pm in reply to: How to add elements to individual pages? #153330
    Graham
    Member

    The is_page() function accepts a $page parameter

    Ref: https://codex.wordpress.org/Function_Reference/is_page

    This means that you are able to target a single page by its ID, slug, page title etc

    e.g.

    if ( is_page ( 'your-page-slug' )  )  {
      // do stuff
    }

    or, by page ID. e.g page id 10

    if ( is_page ( 10  ) ) { // 
        // do stuff
    }

    If you wished to target a group of pages, then you could do so by using an array. For example

    if ( is_page( array( 42, 54, 6 ) ) ) { 
        // do stuff
    }

    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 5:07 pm in reply to: Are all StudioPress themes "widget-ready"? #153324
    Graham
    Member

    Yep, basically.. if a theme is referring to use of widgets, then it should be pretty safe to assume its widget ready. I haven't come across a theme that isn't ready so far.

    The function register_widget_areas can be used to tweak the theme and create even more widget areas, should you so wish.. ...

    In addition to the "normal" widget areas one might expect in the sidebar, LIfestylePro has a widgetised front page you could use if you wanted, and footer widget areas, and ... .. etc.

    With a little acquired knowledge, you would be able to modify this further if required


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 3:15 pm in reply to: TablePress CCS settings #153319
    Graham
    Member

    TablePress uses it's own CSS .. ( unless you disable it, by adding a filter to your functions file )

    add_filter( 'tablepress_use_default_css', '__return_false' );

    https://wordpress.org/support/topic/disable-standard-tablepress-css#post-3530278


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 3:08 pm in reply to: How to remove pagination, when I am using Infinite scroll #153318
    Graham
    Member

    Glad to hear it 🙂

    Are you able to mark this topic as resolved?


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 2:57 pm in reply to: "WordPress SEO" is noindexing my home #153315
    Graham
    Member

    I checked your page source, I do not see <meta name=”robots” content=”noindex,follow”/> anywhere


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 2:52 pm in reply to: Are all StudioPress themes "widget-ready"? #153314
    Graham
    Member

    If a theme has widget areas, where widgets can be placed ... then the theme is widget ready.

    The Genesis framework is widget ready, and so is Lifestyle Pro ( a child of the base Genesis theme ). On the theme description, it mentions footer widgets.


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 2:34 am in reply to: CSS not enqueued to bottom of styles #153223
    Graham
    Member

    You might be swimming against the tide there...

    Other plugins add their CSS on even later hooks. Genesis Tabs and jetpack come later too

    Could you not make your CSS more specific than theirs in those instances?


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 22, 2015 at 1:45 am in reply to: Help with Media query code in G-Sample theme #153218
    Graham
    Member

    The padding on the .entry being set to 0px, start there.

    archive-description,
    .author-box,
    .comment-respond,
    .entry,
    .entry-comments,
    .entry-pings,
    .sidebar .widget,
    .site-header {
    padding: 0;
    }


    My JustGiving page: https://www.justgiving.com/helping-graham-give

    May 21, 2015 at 11:21 pm in reply to: Parallax Blog Template Page #153209
    Graham
    Member

    Theirs is split too..... in chunks of 5 posts per archive page.

    The difference I notice is the Archive post navigation technique is numeric, rather than previous/next.

    You may alter that in your theme settings from within your Dashboard

    Dashboard > Genesis > Theme Settings > Content Archives > Select Post Navigation Technique > Numeric

    Although the studio press blog is not using it . .. to show all posts one after the other on the same page, you might find this relevant

    http://jetpack.me/support/infinite-scroll/


    My JustGiving page: https://www.justgiving.com/helping-graham-give

  • Author
    Posts
Viewing 20 posts - 41 through 60 (of 91 total)
← 1 2 3 4 5 →
« Previous Page

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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