wpDiscuz - WordPress Comment Plugin
Form-Specific Short...
 
Share:
Notifications
Clear all

Question Form-Specific Shortcodes?

5 Posts
2 Users
0 Likes
373 Views
Posts: 3
Topic starter
(@owskins)
Active Member
Joined: 7 months ago

I have a unique use case where I am attempting to collect user rating data *per product* and display it attached to said product.

I also wish to design a separate type of form for "blog/posts" pages. The idea is to allow ratings on product pages, but not on post pages.

Is it possible to use a shortcode of some kind to show the comments section on said page, per form? I use Elementor (Shortcode widget), and I've used WooLentor to override the default product shop page (and product page) with custom templates I've designed.

I'm familiar with coding and use Code Snippets, so any solution that exists I'd be willing to try.

Ā 

Thanks for the assistance, this plugin seems perfect for our use case šŸ™‚

attach

Ā 

4 Replies
Posts: 3
Topic starter
(@owskins)
Active Member
Joined: 7 months ago

Partially solved this, discovered that each form will only apply to the specific place intended. Since I took over the Product page using WooLentor and Elementor, I will still need to figure out how to obtain the product's total rating from the product page. (Used a shortcode script found elsewhere on these forums).

Reply
3 Replies
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 6223

Hello OWSkins,

The rating is stored the same way as WooCommerce stores it. You can get it exactly in the same way as in the case of the WooCommerce plugin.Ā 

Reply
(@owskins)
Joined: 7 months ago

Active Member
Posts: 3

@asti Oh awesome, that works out perfectly for us!

Ā 

The last major concern I have has to do with the text size and colors of the comments section, as well as the width. Where can I adjust these? Gray on gray is hard to read.

stretch

Ā 

Reply
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 6223

@owskins,

Please use the CSS code below:Ā 

#wpdcom {
    max-width: 100%;
}

Put the code in the Top Admin Bar > Customize > Additional CSS > "Additional CSS" textarea, save it, delete all caches and check again.

Here is a video: https://www.screencast.com/t/RxFsyrfb3s

The rest of the colours you can change using CSS codes.Ā 

Reply
Share: