1. Adding custom submission form fields is not possible (or at least not supported) at the moment. I will add it to the roadmap for possible development, but I wouldn’t be able to give you any kind of release date.
2. Yes it’s possible to retheme/redesign Site Reviews on the front end.
You can use a third-party plugin such as Custom CSS Pro to override existing CSS styles.
You can use the following hook to completely disable the Site Reviews stylesheet from loading:
add_filter( 'site-reviews/assets/css', '__return_false' );
You can change the order of the submission form fields: https://github.com/geminilabs/site-reviews/wiki/Custom-Submission-Form-Field-Order
3. I strongly advise against hacking the core plugin. You will lose any modifications whenever the plugin is updated.
If you have specific design requirements where the above methods are not adequate, let me know and I will see what I can do in the next update.
-
This reply was modified 7 years, 1 month ago by Gemini Labs.
Thanks for the update, I didnt realize there was any to begin with.
1. Thank you. I hope this can workout easily for you.
2. I am currently overiding the CSS. But I cant change the structure. I guess I just have to make do with what I have.
3. Hacking the core is the last thing I want to do.
Thanks for your speedy response.
Are you talking about the structure of the submission form fields or the reviews themselves?
I am talking about the reviews.
Would it be possible to add “offset” to the shortcode. At least I can code this manually by assigning to post ID. Ultimately, I want to add image to the review and link to customer.
If you really want to code the reviews manually, you can use the provided glsr_get_reviews()
helper function to get an array of review objects with their raw values. You can pass through the same options as in the shortcode, except for “class”, “hide”, “title”, and “schema” which are shortcode specific.
To find out more about the available helper function, see the help page in the Site Reviews “Get Help” menu.
To code custom reviews HTML INCLUDING custom pagination, you will need to the following more advanced method:
$paged = glsr_resolve('Query')->getPaged();
“$paged” will contain the current page number of the query.
$reviews = glsr_resolve('Database')->getReviews([
"assigned_to" => 13,
"count" => 10,
"pagination" => true,
]);
“$reviews” will contain an object with two values: The first ($reviews->reviews
) contains an array of review objects; the second ($reviews->max_num_pages
) contains the total number of pages in the query.
From these you can build your pagination.
You can also use the glsr_debug()
helper function to ease development. For example, glsr_debug( $paged, $reviews );
will print both variable to the page so you can inspect them.
I hope this helps.
Please explain to me what the use-case is for an “offset” shortcode option.
I haven’t heard back from you in a week so I’m assuming this issue resolved. If you need further help, you can send an email to the address shown on the “Site Reviews – Get Help” page.
-
This reply was modified 7 years, 1 month ago by Gemini Labs.
The use of offset is so that I can include images instead of using gravatar. You can have a look at this page http://laman7.ml/portfolio/miszoven/, almost at the very bottom . In this example, the reviews are assigned to the post.
What I want to accomplish is in this page http://laman7.ml/testimonials/, but not just reviews, I want to add photos of the reviewers.