Viewing 13 replies - 1 through 13 (of 13 total)
  • plugins/advanced-random-posts-widget/includes/posts.php and the tag code above line 98:

    $html .= '<span class="arpw-tags">' . get_the_tag_list('<p>Tags: ',', ','</p>') . '</span>';

    Thread Starter Movietajm

    (@zeerux)

    Excellent! Thx!!

    Thread Starter Movietajm

    (@zeerux)

    Can I just ask you one more thing then =)
    Can I directly under the tags add the categories? What code can I use then?
    Thx in advance!

    $html .= '<span class="arpw-category">Categories: ' . get_the_category_list(', ') . '</span>';

    how to reduce p margin (under tags), custom css:

    .arpw-tags p {
      margin-bottom: 0;
    }
    Thread Starter Movietajm

    (@zeerux)

    Thx a lot! Works fine!

    Thread Starter Movietajm

    (@zeerux)

    How do I reduce the margin for the title?

    I tired

    .arpw-title p {
    margin-bottom: 0;
    }

    Check https://movietajm.se

    If its possible.. And you have the time =)
    Can I get the thumbnail to the left (above the title, tag and category) instead of center?

    Also, can I have a line that is between the posts? So its easier to see what goes for what? Like a line between the categories and next thumbnail? =)

    Thx for a really good plugin. I have tried for a month configure my own random post widget, but I gave it up =)

    top and bottom:

    .arpw-tags p {
      margin-top: 0;
      margin-bottom: 0;
    }

    thumbnail and position – widget settings, Thumbnail->Thumbnail Alignment

    line – custom css:

    .arpw-li {
      border-bottom: 1px solid #ddd;
    }
    Thread Starter Movietajm

    (@zeerux)

    REALLY GOOD WORK!! THX!

    • This reply was modified 6 years, 4 months ago by Movietajm.
    Thread Starter Movietajm

    (@zeerux)

    One last thing (promise lol):

    1. Is it possible to use excerps?

    I have many movietitles that is like:
    “Miss Peregrines Home For Peculiar Children” and then I cant get the whole title on one row. I cant lower typ fontsize cause then its hard to read it at all.

    2. What I really want, and maybe you can change this for next update, is the thumbnail beeing to the left BUT all info also to the left (under the thumbnail).

    Then I could have a bigger thumbnail, and both titles and categories would fit. (Some movies has many categories).

    3. I tried use “center” but then only the thumbnail would go center and the text would go far left.

    4. Can I also use code to get dots around the thumbnail? Like a frame.

    Thx again and hopefully I dont waste your time! =)

    • This reply was modified 6 years, 4 months ago by Movietajm.

    1. I don’t understand… settings->Extras and you can configure excerpt (auto from content or Excerpt field)

    2/3.

    .arpw-title,
    .arpw-summary,
    .arpw-category,
    .arpw-tags {
      float: left;
      clear: both;
    }

    4.

    .arpw-thumbnail {
      padding: 2px;
      border: 1px dotted #ddd;
    }
    Thread Starter Movietajm

    (@zeerux)

    Thx again!

    1. It might be “excerpt”. What I ment was that if the title is 50 chars, I want to limit it to like 30 chars so the movie:
    “Miss Peregrines Home For Peculiar Children”
    will instead be like
    “Miss Peregrines Home For Pec..”

    5. Tried using <p> in category-line and even margin-bottom but no success. How do I get a 10 px distans after categories?

    thx again!

    1. plugins/advanced-random-posts-widget/includes/posts.php and line 96:

    $html .= '<a class="arpw-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . esc_attr( get_the_title() ) . '</a>';

    replace (words, eg. 5)

    $html .= '<a class="arpw-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . wp_trim_words( get_the_title(), 5 ) . '</a>';
    

    or characters (eg. 30)

    $html .= '<a class="arpw-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . mb_strimwidth( get_the_title(), 0, 30, '...' ) . '</a>';
    

    2.

    .arpw-category {
      margin-bottom: 10px;
    }
    Thread Starter Movietajm

    (@zeerux)

    Excellent! Thx again! Over and out!
    /Movietajm

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘TAG after TITLE’ is closed to new replies.