Forum Replies Created

Viewing 15 replies - 1 through 15 (of 59 total)
  • @stumaxuk Try moving this code to your main functions.php in your theme files, instead of modifying the actual plugin functions.php. The theme file should hook into the plugin and you shouldn’t need to modify the plugin code itself.

    @scottlapierre @bluen0te I’ve made a LOT of custom changes to this plugin to support series, support custom ordering of books and series, support multiple languages, and to introduce a shortcode so you can embed a series or a single book with a variety of options into a block, post, or page. I also added support for up to 12 buttons and other common button/links like audio samples, and WooCommerce link support.

    I had a quick look at my version this morning and it would be some work to just include the shortcode code here (because it is series-dependent, and the version of the plugin here does not support series). So I’m not sure when I will get around to pulling out just that part of the code, but I’ll put it on my to-do list.

    Here’s my development website by the way, where you can see it working with series and samples of the shortcode embedding things in pages/posts.
    https://authorsite.sweetsmartdesign.com/

    There is a way to change the slug if you haven’t made any custom changes to this plugin. Try adding this code to your functions.php file:

    ‘add_filter( ‘genesis_author_pro_archive_slug’, ‘custom_author_pro_archive_slug’ );
    function custom_author_pro_archive_slug() {
    return ‘products’;
    }

    add_filter( ‘genesis_author_pro_book_slug’, ‘custom_author_pro_book_slug’ );
    function custom_author_pro_book_slug() {
    return ‘product’;
    }`

    I forked this plugin myself to activate the gutenberg editor, it required a few small changes to the plugin code. You can’t use it with the plugin as-is right now.

    snowbelly

    (@snowbelly)

    I would not recommend blocking or removing the title as it’s an important factor for the site SEO. Google will look for the title and also a traditional content structure of an <h1> style title at the top followed by information in paragraphs.

    If you really want to remove the title you could insert it manually as an <h1> at the top of your book description.

    Since this page is auto-generated you will not be able to use the checkbox shown above to hide the title. You would have to block it either with a custom change to the plugin code or via CSS. CSS is easier and will last between plugin updates even though it’s not quite as clean of a solution.

    To block it, you can go under Appearance > Customize to load the customizer, then click on “Additional CSS” and add:

    .books-template-default .entry-title {
    display: none;
    }

    But please do not do this lightly as it really will impact the searchability of your site and your overall SEO at Google.

    snowbelly

    (@snowbelly)

    You need to add a little custom CSS to your site.

    Go under Appearance > Customize to load the customizer. Then click on “Additional CSS” in the menu down the left hand side.

    Enter some custom CSS to centre the titles. You could try this:

    .books-template-default .entry-title {
    text-align: center !important;
    }

    I notice on your page your main book description text isn’t aligned with the book cover image, which is going to become more obvious if you center the title. If you edit the book details and flip over to “text” mode for the main details page, you will likely see an empty paragraph tag set at the very top of your description – just remove it and Update to fix the alignment issue.

    snowbelly

    (@snowbelly)

    I use this plugin and I’ve never seen it put the date on the book pages before. I’m guessing this is being added by your theme? Can you include a link to your site so we can see it in action?

    The Easter Egg fix allows you to control a page that shows a set of posts. For this library plugin, only the books themselves correspond to “post” style types.

    The author info is still a taxonomy and the blog page/feeds don’t display taxonomy stuff directly. The author entries just aren’t stored in the database the same way and all the usual query/display stuff to show a bunch of information is post-focused, not taxonomy-focused.

    I really don’t think you will find a quick an easy solution for this. I’ve dug around for you but wasn’t able to find a current plugin that allows you to display just the taxonomies and their associated info. You’d need to custom write a small plugin or page template to custom pull the taxonomy info out and display it. It’s quite possible and not too hard, but just custom work.

    This kind of functionality isn’t built into the plugin. The books in the plugins are kind of like blog posts and you can treat them like that (i.e. view an archive of them, embed them places) but the Authors are more like blog post categories – they are a custom taxonomy, or piece of information, about the books. They don’t have their own archive page.

    You would have to do some custom work to create a page that shows all authors. You could consider:
    * manually creating such a page with a manual link to each author’s book archive
    * creating your own plugin to create authors as custom post types, and working with them that way
    * modifying this plugin to add information to each author (I assume you’d want stuff like an author headshot) and then adding a custom taxonomy archive to show the list of authors.

    Okay, close but not quite properly – the empty paragraph thing will have a code in between the two paragraph HTML tags that looks like

    nbsp;

    Delete the tags and the spacer code.

    Hi @bubbles28 , I think you can resolve your problems on your own website with a few custom changes. The plugin itself isn’t doing anything wrong, there are just some formatting problems between it and your setup that are causing the mis-alignment.

    Problem #1: Extra paragraph in each book’s description section.

    I’m not sure why, but it seems that every one of your books has an extra paragraph with a blank space at the very top of its description box. If you go under Library and edit each book, click on the “text” tab in the top right hand corner of the description to flip the description box into Text Mode. This will show you all the HTML code as well as your text in very simple format.

    If you do this, you should spot a bogus extra paragraph at the top that looks like:

    < p >   < /p >
    

    You can just remove all that crap – highlight it and delete it – and make sure your very topmost line is the actual first line of your book description.

    This will bring the description text in line with the book cover image.

    Problem #2: Spacing of the title

    If you take care of Problem #1, you’re probably going to notice that the book title is now squished up next to your description text. This is because the original plugin assumes you will have an author line inbetween them. It looks like, since your site is just for you, you didn’t bother to define an Author for the the Library, and then check off that Author for each book.

    It’s okay to do that! You don’t have to assign an author. But without that author line (i.e. “by Samuel Benjamin” under the title), the title and description get squished.

    To solve this, you have two choices:
    * define yourself as an author (under Library -> Authors) and then go into each book and check off yourself as the author in the right hand column.
    * add some padding space using a few lines of custom CSS after your book titles.

    If you want to add the custom CSS, here’s how:
    * Choose Appearance > Customize from the menu.
    * click on “Additional CSS” on the left hand side menu when the customizer loads
    * add CSS like this:

    .books-template-default .entry-header {
    padding-bottom: 25px;
    }
    

    You can increase the PX number in the padding line if you want even more space.

    (Going to post this now and hope the code bits display properly!)

    If you made custom changes to the plugin to create a new book cover size, you’ll have to regenerate your thumbnails afterwards using a plugin like Regenerate Thumbnails. Make sure you use the “delete old versions and replace with new versions” option.

    @bubbles28 can you provide a link to your own website so we can have a look at the problem?

    I used to get around this problem by adding my own HTML code for all buttons inside the description box. So I’d have the book description, and at the end of it (you need to flip to text mode) you can add something like:

    
    <a href="amazonlink" target="_blank" rel="noopener noreferrer">Amazon</a> <a href="kobolink" target="_blank" rel="noopener noreferrer">Kobo</a> <a href="goodreadslink" target="_blank" rel="noopener noreferrer">Goodreads</a>
    

    And so on, for as many buttons as you need. Then you don’t use the “real” 3 buttons, just this part.

    But eventually I got fed up with that and I forked this plugin and enhanced it with my own code. I added up to 12 buttons, plus additional functionality – display books in series, add a “buy local” button if you have your own woocommerce shop, add links for excerpts and audio samples.

    • This reply was modified 4 years, 2 months ago by snowbelly.
    • This reply was modified 4 years, 2 months ago by snowbelly.
    • This reply was modified 4 years, 2 months ago by snowbelly.
    • This reply was modified 4 years, 2 months ago by snowbelly.
    • This reply was modified 4 years, 2 months ago by Yui. Reason: please use CODE button for proper formatting

    @palomar83 I was totally sold on installing this to allow me to create duplicate events but all my events DO have tickets (I have Event Tickets Plus). Can you elaborate more on what you meant by “you have to be careful” when duplicating events with tickets? Will this cause duplicate tickets to be created, or problems with tracking number of tickets sold? If so, that won’t work for me.

Viewing 15 replies - 1 through 15 (of 59 total)