-
AuthorPosts
-
August 3, 2017 at 1:31 pm #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?
- This topic was modified 7 years, 3 months ago by Niemitz (www.bios-tec.de).
August 7, 2017 at 4:08 pm #835434Hey 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,
YigitAugust 8, 2017 at 8:57 am #835738Hi 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
- This reply was modified 7 years, 3 months ago by Niemitz (www.bios-tec.de).
August 8, 2017 at 3:11 pm #835872Hello again,
the widget should be visible again – all blogposts for testing were just visible for logged in members :PI 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.- This reply was modified 7 years, 3 months ago by Niemitz (www.bios-tec.de).
August 8, 2017 at 3:36 pm #835882Hi,
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,
YigitAugust 9, 2017 at 11:46 am #836308Hi 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)- This reply was modified 7 years, 3 months ago by Niemitz (www.bios-tec.de).
August 14, 2017 at 10:48 am #838538Hi,
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ünterAugust 28, 2017 at 10:05 am #844742Hi 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?
August 28, 2017 at 11:04 am #844753Hallo 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.
August 30, 2017 at 2:08 pm #845787Hi Niemitz,
Froh, dass du Sachen hast, die für dich arbeiten.
Wenn Sie weitere Hilfe benötigen, informieren Sie uns bitte.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.