• WPBook works great for me but I can’t find any documentation on basic layout editing. I’m not a PHP programmer so I don’t know, offhand, how to achieve the following.

    I’d like the posts (in tab view) to display (1) excerpts instead of full posts (2) thumbnail images at the beginning of each excerpt (3) different colors and font sizes (4) and the comment section below the post, without having to click on the headline of the post and go out of tab view into full app view.

    Are these even possible? (I suspect #3 is possible merely through manipulation of the CSS, but I don’t see any CSS file in the plugin directories.)

    Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • B.

    (@bandonrandon)

    You should be able to obtain all that though making changes to your WPBook theme. You will find the theme in WPBook/theme the main file is index.php you will also find the CSS file in theme/default/defualt.css

    1) Edit your theme/index.php change the_content(); to the_except() Inside the main loop see https://codex.www.ads-software.com/Function_Reference/the_excerpt

    2) You could use a plugin (like https://www.ads-software.com/extend/plugins/thumbnail-for-excerpts/) or enable it manually though code. You could enable just for WPBook theme or your whole site depending on your needs.

    3) As mentioned above under theme/default/default.css

    4) you should be able to move the include to the comments.php template to below the post in the main index.php file See https://codex.www.ads-software.com/Function_Reference/comments_template and https://codex.www.ads-software.com/Theme_Development#Including_Template_Files

    A word or warning, BACK UP your theme folder after you get things just right as with every upgrade your theme folder gets rewritten. So you’ll either have to merge your changes or use an older theme/version. We are working on creating a way to use custom themes but it’s not there yet.

    Sorry I don’t have more time to give you in-depth support for customizing WPBook.

    Good Luck!

    Thread Starter calebgriffin

    (@calebgriffin)

    I have answers to most of these questions now.

    1. Excerpts instead of full posts – edit the index.php inside wpbook/theme/.

    At line 123 (in the current version) replace:
    get_the_content();
    with:
    get_the_excerpt();

    You may also need to eliminate or comment out line 124, which applies a filter to the content, as that is already applied by get_the_excerpt();.

    3. There is a style.css inside plugins/wpbook/theme/default which controls the full app view. There’s also, at lines 7-47 of wpbook/theme/index.php, a set of inline defined styles, which control the tab view.

    4. Impossible. Comment section is disallowed.

    That leaves me with the final issue of including the thumbnails. Every one of my posts have a “featured image.” Why is that not showing up?

    Thread Starter calebgriffin

    (@calebgriffin)

    Oops. I didn’t see that you had just posted these answers Bandon. Sorry. Oddly, Thumbnails for Excerpts didn’t work for me. I wonder if I did something wrong.

    Thread Starter calebgriffin

    (@calebgriffin)

    One other thing. Is there a way to limit the number of posts/excerpts that show up? Currently, my app is loading a lot of posts which slows it down a bit, I think.

    B.

    (@bandonrandon)

    I didn’t see you were asking about the Tab view so yes part 4 of your question is not alloed for tab view but should be allowed for app view. I bet the thumbnails for excepts won’t work for the same reason as comment code, no HTML allowed in tab view. Not sure how to write the FBML for this features.

    WPBook uses the same loop as your parent WP site so you have a few options
    1) change Settings > Reading > Blog page show at most X post option to a smaller number

    2) Try a plugin solution like https://www.ads-software.com/extend/plugins/cbnet-different-posts-per-page/ which is a fork of https://www.maxblogpress.com/plugins/dppp/

    3) use a custom query (you may have to learn php or have help from someone who knows it) https://codex.www.ads-software.com/Displaying_Posts_Using_a_Custom_Select_Query

    I also see John has been helping you on Google Groups at https://groups.google.com/group/scholarpress-dev/browse_thread/thread/1eb3d3ef95f4799c so he may have some ideas.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WPBook Plugin Layout Design / Edit’ is closed to new replies.