Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #833876

    Hello enfold-team,
    i’ve implemented the recent-news-widget on a front-page and i want the date to show above the title.

    After some testing i realized it would be way easier to just change the order of the generated output of the widget,
    so that the date comes ahead of the title.

    Where and how should i change the code of the widget to achieve this?

    #835434

    Hey Niemitz,

    Sorry for the late reply!

    It seems like you have removed the widget from your page. If you would like to revisit, please post a screenshot and show the changes you would like to make. You can upload your screenshots on imgur.com or Dropbox public folder and post the links here

    Best regards,
    Yigit

    #835738

    Hi Yigit,

    thanks for your answer.
    Yea I just realized that the widget is no longer visible in the white box below the menu, when a user is not logged in.
    We’re checking atm how to display the Blog-Widget without being logged in.

    I’ll update as soon as we have fixed that.

    Thanks in advance for your time

    #835872

    Hello again,
    the widget should be visible again – all blogposts for testing were just visible for logged in members :P

    I hope you can see my problem now.
    I managed to arrange the date of the blogposts above the title, but as soon as the blogtitle is longer than one line the position of the date is off.

    That’s why i was wondering if you can change the html output of the widget in a way that the date comes ahead of the title.
    That would make it way easier to arrange via CSS.

    #835882

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

    span.post-date {
        top: 30%;
    }
    

    Best regards,
    Yigit

    #836308

    Hi Yigit,
    thanks for your answer but that just moves both dates to the top over the Headline.
    The problem is that the position of the date is perfect as it is, but when the title of the blogpost goes over two lines it’s right on top the first line.
    I haven’t figured out a way so far to solve that problem except by changing the output order of the list object, so the span.post-date would stand ahead of the title-link.
    (see link in private content)

    #838538

    Hi,

    Tut mir leid für die verspätete Antwort wegen der Sommerferien.

    Es ist sicher am leichtesten, den Code abzuändern und das Datum vor dem Posttitel auszugeben.

    Den Code findest Du in wp-includes\widgets\class-wp-widget-recent-posts.php Zeile 85 – 88.

    Dann lässt sich das ganze mit CSS leicht stylen.

    Hoffe, das hilft Dir einmal weiter. Gerne helfen wir Dir dann mit dem CSS weiter.

    Best regards,
    Günter

    #844742

    Hi Günther,
    vielen vielen Dank für deine Antwort,
    ich werde mit einem Kollegen das diese Woche gleich einmal ausprobieren.

    Auf Kundenwunsch hin hätte ich noch die Frage, ob es möglich ist neben dem Datum auch die Uhrzeit eines Blogbeitrages darzustellen?

    #844753

    Hallo Günther,

    die zweite Frage hat sich schon erledigt, auf Tipp vom Kollegen lässt sich das Format sehr einfach in der PHP-Datei vom Widget direkt ändern.

    #845787

    Hi Niemitz,

    Froh, dass du Sachen hast, die für dich arbeiten.

    Wenn Sie weitere Hilfe benötigen, informieren Sie uns bitte.
    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.