Forum Replies Created
-
AuthorPosts
-
GrahamMember
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
GrahamMembercurses... 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
GrahamMemberA 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
GrahamMemberGenerally, 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
GrahamMemberI 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
GrahamMemberTry 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
GrahamMemberRelated 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
GrahamMemberThe single quotation marks are necessary
add_action( 'genesis_after_header', 'golf_course_slider' );
My JustGiving page: https://www.justgiving.com/helping-graham-give
GrahamMemberCould 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
GrahamMemberGrahamMemberPerhaps 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
GrahamMemberThe 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
GrahamMemberYep, 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
GrahamMemberTablePress 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 #153318GrahamMemberGlad to hear it 🙂
Are you able to mark this topic as resolved?
My JustGiving page: https://www.justgiving.com/helping-graham-give
GrahamMemberI 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
GrahamMemberIf 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
GrahamMemberYou 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
GrahamMemberThe 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
GrahamMemberTheirs 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
-
AuthorPosts