TPG Get Posts
Overriding Styles (4 posts)

  1. TimCarey
    Posted 3 years ago #

    I'm having problems overriding styles. I was able to make some changes in the style sheet built into and the plug in. I created a style file with the correct name and put it into my Theme Directory.

    I am trying to change the following So the bullet is next to the title and a bigger space after the article content. Right now the bullet is way above the title and the content is running into the next bullet. I also want to change the font size of the title and content. I have the short code as follows.
    [tpg_get_posts fields="title,content" shorten_content="w350" numberposts=3 orderby="date" ul_class="tpg-ul-class"]
    It's in a bunch of div To put it in a section on the page. Wonderful plug in but it is just confusing styling.


  2. TimCarey
    Posted 3 years ago #

    I ended up getting it the way I wanted, but I had to Edit the style in the style sheet in the plugin couldn't get override to work.

    Here is what I ended up doing But override would be better.
    [tpg_get_posts fields="title,content" title_link="false" shorten_content="w400" numberposts=3 orderby="date" ul_class="tpg-ul-class" title_tag="strong" post_content=tpg-content-class]

    Edited in plug in.

    padding-bottom: 25px;

    .tpg-ul-class strong {
    color: black;
    font-size: 10pt;

  3. cswaim
    Plugin Author

    Posted 3 years ago #

    I must agree the styling is confusing. It has evolved over time and in order to maintain backwards compatibility, it is now overly complex. If the styling continues to appear as source of aggravation, I will raise the priority of restructuring. As a result of the piece-meal growth of the styling, not all the sections are handled the same and that adds to the complexity.

    for now, there is an parm field_classes="post_title=tpg-title-class, post_content=tpg-content-class, post_metadata=tpg-metadata-class, post_byline=tpg-byline-class" which over-rides the classes and lets you assign your own class.

  4. cswaim
    Plugin Author

    Posted 3 years ago #

    I will verify the over-ride feature this week. Make sure the file name you use is user-get-posts-style.css and is put in the root directory of the theme or child theme, if your theme is a child theme. The over-ride css file name is different from the base name.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TPG Get Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic