Nick C
Forum Replies Created
-
Forum: Plugins
In reply to: [Osom Author Pro] Adding URL to Publisher in Book DetailYou would need to modify the plugin to add a “Publisher URL” field — the fields are not currently filterable. If you’d like to do that:
– The fields are defined at
plugins/genesis-author-pro/classes/class.Genesis_Author_Pro_Book_Meta.php– The publisher is output at
plugins/genesis-author-pro/functions/template.phpingenesis_author_pro_get_book_details(), and would need to be adapted to include the link.Note that changes to the plugin would be overwritten during plugin udpates, though.
One alternative is to use one of the three buttons to display a link to the publisher’s site instead. For example:
Thank you so much for your offer to contribute French translations. You can do so from this page: https://translate.wordpress.org/projects/wp-plugins/genesis-author-pro/stable/fr/default. (If you have a French translation file already, you can upload that with the “Import Translations” link in the bottom-left of that page.)
Forum: Plugins
In reply to: [Genesis Connect for WooCommerce] How to customize variable.php?Hi, @echoleaf!
Did you add the variable.php template to this path?
themes/[your-theme-name]/woocommerce/single-product/add-to-cart/variable.phpWhen I do that I see any
variable.phpcustomisations reflected on the site:If you accidentally put the file in
themes/your-theme-name/woocommerce/variable.phpor elsewhere instead, that would have no effect — it needs to use the full path of the original WooCommerce template file.I hope that helps! For further questions about theme and plugin template customisation in StudioPress themes, I recommend these resources:
– https://www.studiopress.com/forums/
– https://www.facebook.com/groups/genesiswp/
– https://genesis.community/slack/Forum: Plugins
In reply to: [Genesis Portfolio Pro] Portfolio type name displayHave you cleared all browser, plugin, and any other caches, @detroitwidget?
Testing locally, I see the following in Breakthrough under single portfolio items after the above change:
You’re welcome! Thank you for letting us know.
Thanks! Can you try selecting Page → Products (under “Post type archives”) from the Jetpack widget visibility drop-down instead of Page → Shop, please?
WordPress / WooCommerce / Genesis Connect treats the shop page as a post type archive rather than a regular page, which is why it doesn’t appear when Page → Shop is selected.
Thanks for these screenshots, @earrame.
Which widget visibility plugin are you using to show and hide widgets? It sounds like the way the plugin is checking for the shop page may be the issue here, but I’d be happy to test this further for you.
Forum: Plugins
In reply to: [Genesis Portfolio Pro] Portfolio type name displayThanks for using Breakthrough and Portfolio Pro, @detroitwidget!
You can display portfolio types below single portfolio page content by adding this PHP to the bottom of the theme’s functions.php file:
add_action( 'genesis_meta', 'sp_portfolio_add_meta' ); /** * Add portfolio meta to portfolio singles. */ function sp_portfolio_add_meta() { if ( is_singular( 'portfolio' ) && is_main_query() ) { add_action( 'genesis_entry_footer', 'genesis_post_meta' ); add_filter( 'genesis_post_meta', 'sp_portfolio_set_post_meta' ); } } /** * Callback to adjust post meta to display portfolio types. * * @return string The meta for portfolio types. */ function sp_portfolio_set_post_meta() { return '[post_terms taxonomy="portfolio-type"]'; }If you need help adjusting this further or making other theme customisations, I recommend the resources here: https://my.studiopress.com/community/.
Forum: Plugins
In reply to: [Genesis Portfolio Pro] Portfolio category image sizeThanks for confirming that, Marie.
It looks like you may have switched portfolio plugin, as I can no longer access http://isaphotographie.com/portfolio_category/generation/.
If you decide to switch back to this plugin and require further help, please feel free to contact StudioPress support with your admin login info so we can review the site setup in more detail.
Forum: Plugins
In reply to: [Genesis Portfolio Pro] Portfolio category image sizeHi Marie
Thanks for your question.
Is it definitely the Genesis Portfolio Pro plugin you’re using on the site? From the URL and HTML on that page, it looks like it may be another plugin.
If it’s Genesis Portfolio Pro, you can try regenerating your image thumbnails using a plugin such as this one: https://wordpress.org/plugins/regenerate-thumbnails/
Forum: Plugins
In reply to: [Osom Author Pro] Is this plugin still maintained?Hi Jean-Philippe
Yes, the plugin is still maintained and working with the latest version of WordPress and Genesis.
I don’t have an update timeline to share, but you’re welcome to post feature and enhancement requests here or in the plugin repository: https://github.com/studiopress/genesis-author-pro/issues.
Forum: Plugins
In reply to: [Osom Author Pro] Need third buy button to open on same pageHi Kari
If you plan to modify the plugin, you could change the
genesis_author_pro_get_buttonsfunction to look like this:function genesis_author_pro_get_buttons( $post_id = '' ) { $buttons = array( 'button_1', 'button_2', 'button_3' ); $values = array(); foreach( $buttons as $button ){ $uri = genesis_author_pro_get_book_meta( $button . '_uri' , $post_id ); $text = genesis_author_pro_get_book_meta( $button . '_text', $post_id ); $target = ( $button === 'button_3' ) ? '' : 'target="_blank" rel="noopener noreferrer"'; if ( empty( $uri ) || empty( $text ) ) { continue; } $values[] = sprintf( '<a href="%1$s" class="button button-book" %2$s>%3$s</a>', $uri, $target, $text ); } return empty( $values ) ? false : implode( '', $values ); }Note that this change will be overwritten during plugin updates, though.
You could alternatively add a script to remove the target attribute on the third button at Appearance → Customize → Theme Settings → Header/Footer Scripts → Footer Scripts:
<script> var thirdButton = document.querySelectorAll(".single-books .book-details .button-book:nth-of-type(3)"); if (thirdButton.length > 0) { thirdButton[0].removeAttribute("target"); } </script>This won’t work if JavaScript is disabled, but it also won’t be removed after plugin updates.
I hope that helps as a starting point. If you need further help with this or other StudioPress theme and plugin customisations, I recommend the community resources here: https://my.studiopress.com/community/.
Forum: Plugins
In reply to: [Simple Social Icons] Small bug on Instagram inputboxGreat to hear! Thanks for letting us know.
Forum: Plugins
In reply to: [Simple Social Icons] Small bug on Instagram inputboxThank you for this report, @outcats85, but I wasn’t able to reproduce this so far.
In Simple Social Icons 2.0.1 I can save an Instagram URL with the www subdomain:
And the www still appears on the front end:
You could try temporarily disabling other plugins, and removing any filters and theme customisations.
Forum: Plugins
In reply to: [Osom Author Pro] Add Book Excerpt and Button to Archive PageYou can copy the book archive template from
wp-content/plugins/genesis-author-pro/templates/archive-books.phpto your child theme directory and make modifications to it there.If you need further help modifying the file, I recommend asking in the StudioPress forums, or making use of the other StudioPress community resources.
Forum: Plugins
In reply to: [Simple Social Icons] email address isn’t encodedGreat — thanks for letting us know. (And, yes, the view source/inspector difference is really confusing at first!)