• Would it be possible to pass style arguments into the shortcut – that way I could determine how many columns are displayed, which background color for each category… and so on. Plus I would not need to “hack” you’re stylesheet and fear to be over written in future releases…

    Thank you in advance,

    Uwe

    • This topic was modified 5 years, 3 months ago by uwew.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Igor Benic

    (@ibenic)

    Hi @uwew,

    Not sure about the background color for categories but I could put a class formed from the category name if you would like that? Can you explain me more how you see that option to work, so I can know what to do?

    As for the columns, I’ll check that also.

    I plan to make this available as a Gutenberg block as well so it should be even easier to create such layout.

    Thread Starter uwew

    (@uwew)

    Yes, a style class with the category name/slug would be great. All I’d have to do then is create my own Stylesheet entry that supersedes your‘s…

    Thank you,

    Uwe

    Plugin Author Igor Benic

    (@ibenic)

    Hi @uwew, with 3.1.0, each sponsor item will now have also the category slug as class.

    Thread Starter uwew

    (@uwew)

    Thank you, Igor – that is awesome – can’t wait:)

    Uwe

    Thread Starter uwew

    (@uwew)

    Hmm, just installed the latest version and I don’t see the class of my sponsor…

    Did you do the alteration on the “bigger brother” of this plugin (Simple Sponsorships) rather than the “simplified” Sponsors plugin??

    Following is my html code after the update:

    <h5> Individual Donors</h5>
    <div id="wp-sponsors" class="clearfix grid">
    	<div class="sponsor-item small">
    		<h3>SPONSOR No 1</h3>
    		<p></p>
    		<p>SPONSOR No 1 text</p>
    		<p></p> 
    	</div>
    	<div class="sponsor-item small">
    		<h3>SPONSOR No 2</h3>
    		<p></p>
    		<p>SPONSOR No 2 text</p>
    		<p></p> 
    	</div>
    	<div class="sponsor-item small">
    		<h3>SPONSOR No 3</h3>
    		<p></p>
    		<p>SPONSOR No 3 text</p>
    		<p></p> 
    	</div>
    </div>
    <h5> Corporate Sponsors</h5>
    <div id="wp-sponsors" class="clearfix grid">
    	<div class="sponsor-item small">
    		<h3>SPONSOR No 1</h3>
    		<p></p>
    		<p>SPONSOR No 1 text</p>
    		<p></p> 
    	</div>
    	<div class="sponsor-item small">
    		<h3>SPONSOR No 2</h3>
    		<p></p>
    		<p>SPONSOR No 2 text</p>
    		<p></p> 
    	</div>
    	<div class="sponsor-item small">
    		<h3>SPONSOR No 3</h3>
    		<p></p>
    		<p>SPONSOR No 3 text</p>
    		<p></p> 
    	</div>
    </div>
    

    I hate to be “picky” but I was hoping to get the style/class tag in the encapsulating div – also, not this may be asking for to much, would it be possible to not have the paragraph <p></p> “clutter up” the list if there is no content?

    Thank you, Sir…

    • This reply was modified 5 years, 3 months ago by uwew.
    • This reply was modified 5 years, 3 months ago by uwew.
    Plugin Author Igor Benic

    (@ibenic)

    Hi @uwew,

    this was done to this plugin, not to Simple Sponsorships as there is no such shortcode. It’s a different one.

    I did not see those extra paragraph elements in the HTML output when I was working on it. I’ll check it once more to be sure.

    Plugin Author Igor Benic

    (@ibenic)

    Hi @uwew,

    I have pushed 3.2.0 version that fixes the paragraph issue here and I’ve just saw that you wanted to have the container class with the category.

    I’ll try to add that with 3.2.1 as soon as possible.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Style question’ is closed to new replies.