Forum Replies Created
-
AuthorPosts
-
carasmoParticipant
Those are for pages, if this is a mixture of posts and pages use is_single instead in the is_not_this_page helper. Please read https://codex.wordpress.org/Conditional_Tags then you can see how to get what you want for your needs.
carasmoParticipantHow do you skip specific page titles? I would make a helper like this using the page/post id:
/** * * Is Page Title Helper * @since 1.0.0 * */ function is_not_this_page() { return ( ( is_page( array( '414', '530', '1107', '1589', '1638', '1134', '369' // last has no comma ) ) ) ) ? true : false ; }
Then apply it with the ! not conditional like this which says:
is not admin and in the loop and is singular and not any of those pages in the array:
function new_title( $title ) { if( ! is_admin() && in_the_loop() && is_singular() && ! is_not_this_page() ) { $new_title = '<i class="ion-fork">x</i><br> ' . $title; return $new_title; }//end conditional return $title; } add_filter( 'the_title', 'new_title' );
carasmoParticipantif you want both archive and single, just remove the
&& is_singluar()
carasmoParticipantYou would add a conditional that says: it's not admin and in the loop and a single page
function new_title( $title ) { if( ! is_admin() && in_the_loop() && is_singular() ) { $new_title = '<i class="ion-fork">x</i><br> ' . $title; return $new_title; }//end conditional return $title; } add_filter( 'the_title', 'new_title' );
carasmoParticipantAhh, I know what you mean now.
You would write a conditional php function for the home/front_page.
There is also plugins for this: https://wordpress.org/plugins/tracking-code-manager/
carasmoParticipantDo you mean a scroll progress bar?
There's a plugin for that (google WordPress scroll progress bar)
https://wordpress.org/plugins/scroll-progress-bar/screenshots/
And there are tutorials on that page. Most things like this are not any different in Genesis.
carasmoParticipantYou go to your Genesis > Admin Settings then scroll down to footer scripts and paste it in there and save. It adds to all pages.
February 1, 2017 at 3:17 pm in reply to: Using Genesis eNews Extended On A WordPress (Digital Pro) Page #200392carasmoParticipantFebruary 1, 2017 at 10:35 am in reply to: Using Genesis eNews Extended On A WordPress (Digital Pro) Page #200371carasmoParticipantNot really sure what you're looking for, but will attempt.
Use that amr-shortcode-any-widget, create your two widgets, get the shortcode you need.
Create a new page. Use the genesis column classes and stick one shortcode in the one-half first and the other in the one half.
See the style.css file for your Genesis column classes and look at the original demo to see a demo page.
<h4>Two-Columns</h4> <div class="one-half first"> [myshortcode1] </div> <div class="one-half"> [myshortcode2] </div>
carasmoParticipantGreat. Please choose it as the answer at SO:
carasmoParticipantYou have a parse error, unclosed media query at the very bottom of your stylesheet, fix it. See the image and compare it to yours.
Add the following CSS after you close your bracket:
/* put date before title in featured post widget on home page */ .executive-pro-home .featuredpost .entry-title { display: table-footer-group; position: relative; top: -5px; } .executive-pro-home .featuredpost .entry-meta { display: table-header-group; }
carasmoParticipantI answered this on StackOveflow:
The answer is on this forum already:
You would add this to your functions.php file and change the words as needed. When your plugin updates, the words won't change:
/** * Filter the loop output of the AgentPress Featured Listings Widget. */ function agentpress_featured_listings_widget_loop_filter( $loop ) { $loop = ''; /** initialze the $loop variable */ $loop .= sprintf( '<a href="%s">%s</a>', get_permalink(), genesis_get_image( array( 'size' => 'properties' ) ) ); $loop .= sprintf( '<span class="entry-title">' . ( get_the_title() ) . '</span>' ); $loop .= sprintf( '<span class="listing-price">%s</span>', genesis_get_custom_field('_listing_price') ); $custom_text = genesis_get_custom_field( '_listing_text' ); if( strlen( $custom_text ) ) $loop .= sprintf( '<span class="listing-text">%s</span>', esc_html( $custom_text ) ); $loop .= sprintf( '<span class="listing-address">%s</span>', genesis_get_custom_field('_listing_address') ); $loop .= sprintf( '<span class="listing-city-state-zip">%s %s, %s</span>', genesis_get_custom_field('_listing_city'), genesis_get_custom_field('_listing_state'), genesis_get_custom_field('_listing_zip') ); // Here is where you change the text: $loop .= sprintf( '<a href="%s" class="more-link">%s</a>', get_permalink(), __( 'Book Now', 'yourtextdomain' ) ); return $loop; } add_filter( 'agentpress_featured_listings_widget_loop', 'agentpress_featured_listings_widget_loop_filter', 10, 1 );
carasmoParticipantActually, ignore the FlatIcons, your menu icons do show up, but you have to scroll past the page to the right a good bit. There is an image or element in that area that has an explicit width. Use percentages, max-width, or some other value but not anything that has a hard width.
carasmoParticipantYour CSS looks okay, except FlatIcons are causing an issue. I would deactivate and trouble shoot from there.
carasmoParticipantGet the original theme style.css and COMPARE it with yours.
https://www.diffchecker.com/ - compare files
If you didn't touch any CSS related to your navigation and added CSS on your own either in a plugin or in the theme you may have a parse error, then styles won't render after the error.
Run all your CSS (including those generated any custom CSS you added) through a validator to see if there are parse errors such as not closing a bracket where it needs to close.
This is not a bug with the theme, it is something in your CSS that is doing this.
carasmoParticipantcarasmoParticipantIf you look at the demo (http://demo.studiopress.com/agency/) the reason why that CSS is set that way is because the jQuery toggles the sub menus when you click the caret. So leave the CSS alone.
Don't leave the custom menu link blank, use a #, just like the demo, and your child menus will work on smaller viewports.
carasmoParticipantJanuary 25, 2017 at 11:13 am in reply to: How to add WooCommerce short by button when using shorcodes #200016carasmoParticipantYou can just make a menu link directly to the tag or archive Then the standard sorting and navigation is there.
http://raccoon.shop/kauppias/konstantin-nikkari/
You appear to be missing the Genesis Connect for WooCommerce plugin.
January 25, 2017 at 11:08 am in reply to: How to add WooCommerce short by button when using shorcodes #200015carasmoParticipantThat's the way https://docs.woocommerce.com/document/woocommerce-shortcodes/ work. This is not a Genesis function, it's WooCommerce.
To do what you want you'd have to create a template and then create a loop and add in the hook for the sorting and the pagination (see their archive-product.php for the things you need).
A basic loop is here:
https://docs.woocommerce.com/document/sample-products-loop/
-
AuthorPosts