wecobble / Subtitles

Add subtitles into your WordPress posts, pages, custom post types, and themes. No coding required. Simply activate Subtitles and you're ready to go.
http://wordpress.org/plugins/subtitles/
GNU General Public License v2.0
117 stars 186 forks source link

works fine: want to limit width #64

Closed Dindigul closed 8 years ago

Dindigul commented 8 years ago

Hello The plugin works fine. However, I would appreciate if you tell me how to limit its width upto 3/4 of page width. (Reason being, I don't want to use sidebar, and without it the subtitle stretches to full width).

philiparthurmoore commented 8 years ago

Hi there. Try this:

.entry-subtitle { max-width: 75%; }

Cheers, Philip

Dindigul commented 8 years ago

Worked perfectly.

BTW, can it be used to apply selectively? I mean only to Pages and Not Posts? Or on desired Pages/Posts?

I just want this definition for the homepage (did not realize it will change all posts/pages).

I have changed my rating to 5 star from earlier 3. Sorry for my knee-jerk reaction!

philiparthurmoore commented 8 years ago

Hi @Dindigul. Thanks for reconsidering your review. Often times those reviews are what keeps me going, and a simple support request can go a long way to helping you figure out your problem.

Yes, you can apply that code selectively, but I would need to know the specific posts/pages that you wanted to selectively apply the code on. Here's how you can easily do that:

  1. Inspect your page HTML: https://cloudup.com/cBPQt_NgQq8
  2. Use that post class in front of the CSS I gave you, for example .post-400 .entry-subtitle { max-width: 75%; }.

You can also use this plugin to easily tell you which post/page ID you're using to easily set up post/page specific CSS.

Cheers, Philip