Sponsor Groups on Sponsor Page
Support Area › Forums › Progress › Sponsor Groups on Sponsor Page
- This topic has 5 replies, 2 voices, and was last updated 10 years, 10 months ago by Bill Robbins.
-
AuthorPosts
-
June 24, 2013 at 10:36 #11984Lara MarshParticipant
Hi Bill –
I have a question about how to display the Sponsor Groups.
I have several sponsor groups (Title Sponsor, Silver Sponsor, Bronze Sponsor, etc.). I would like the Sponsor page to break out each set of sponsors by their sponsor group and be able to show them in order of sponsorship (i.e. Title at the top, Bronze at the bottom). You can see the start of the page here: http://www.runningfarther.com/sponsors/
I don’t know how to get this page to show the sponsors by sponsor group with appropriately styled subtitles so that each sponsor gets the appropriate recognition.
Thank you!
LaraJune 24, 2013 at 11:35 #11990Bill RobbinsModeratorLara,
Good question. I don’t have a built-in way to display various sponsor groups on the same page, broken out by groups, but you can add it.
I made a quick plugin that I think will work for you. You can download it here. Then go to the Plugins section of your WordPress control panel and select Add New. Upload the sponsor-shortcodes.zip file and activate it.
Now go to your sponsors page. Instead of using the Sponsor’s page template, switch back to the default. Now to display a list of your sponsor’s from one group, use this shortcode:
[sponsor group="gold"]
Just replace gold with the “slug” of the sponsor group you’re wishing to display. You can find the slug by going to the Sponsor’s section in your WordPress control panel and clicking on Sponsor Groups. They are listed there.
Once you update your page, that should give a list of that group’s sponsors on the front of your site.
You can place text, headings and so on in between the group shortcodes to help differentiate between the various groups and introduce them.
If you have any questions or trouble, let me know,
BillJune 24, 2013 at 22:36 #12012Lara MarshParticipantBill –
Thank you! This is EXACTLY what I was looking for. There are just two issues now:
1. If I use the Default template, I get the sidebar that goes with it. I’d rather have the Sponsor sidebar. However, I can instead use the Full Width template and put in the sidebar on my own with a
but regardless…2. The Sponsor Groups display in 3 columns (with the Full Width template) rather than one full page. Please see it at http://www.runningfarther.com/sponsors/
How can I get the groups to display properly? Thanks!
Lara
June 25, 2013 at 07:47 #12022Bill RobbinsModeratorLara,
Let’s try this. Go to the Theme Options page and select the Styling tab. Scroll down to the Custom CSS box and paste this:
.full ul.sponsor-list { clear: both; overflow: hidden; } .full ul.sponsor-list li { width: 250px; margin-right: 35px; margin-bottom: 35px; height: 350px; }
Update your settings and see if that doesn’t make the list look a bit better.
Let me know if you have any questions or trouble,
BillJune 25, 2013 at 08:04 #12025Lara MarshParticipantYay! I had to change the clear to a clear:left so I could float my div on the right but it works great. I knew it was the CSS in those ul and li properties that needed to change but I wasn’t quite sure how. Thank you so much!
Lara
June 25, 2013 at 09:28 #12027Bill RobbinsModeratorAnytime Lara. Have a great day!
-
AuthorPosts
- The topic ‘Sponsor Groups on Sponsor Page’ is closed to new replies.