Juha Mets?kallas
Forum Replies Created
-
Forum: Plugins
In reply to: [ICS Calendar] Start date not now but the first existing date of the calendarI think I have sort of an explanation. For some reason the dropdown shows in my site only 12 months. Now if the
pastdays
parameter brings me back so much that the current month is not included within those days counting from the first day in the past, then the dropdown defaults to the first month.Note, that that particular calendar has events from 2018 upto June 2024. Even if I set
monthnav="both"
I cannot browse with the arrows beyond those 12 months.So there is definitely something fishy going on.
I opted for now for a setting that allow browsing ca. three months backward and eight forward.
Forum: Plugins
In reply to: [ICS Calendar] Extra line breaks in the compact layoutOk. I opted for now for the quick fix.
A CSS selector
div.entry-content a
did the trick, thank you.I have had a CSS selector for a button for a long time. There are several dark blue buttons on the site, all using the same CSS definition. As I said, I cannot remember for sure, but I think it previously was possible to have something like
<span class="myButton">Click here</span>
(or<myButton>Click here</myButton>
) in the “Link text” field and have the text using whatever style definitions you had for that class or element. Now that html element does not get evaluated, i.e. you literally see “<span class…”.Compare this to the “Content of topic first post” which gets evaluated. For instance I have for that
%excerpt…<br/>
<br/>
[Read the whole article %title] and I do see the excerpt, an empty line and the text with the name of the article.So something has definitely changed, it might be this plugin or it might be something else. Anyway adding that CSS selector to my button CSS selector (some tweaking was required) solved the issue (which should not have risen at the first place at all).
Correction, the “link text” does not get trimmed but any html content is simply not evaluated, i.e.
<span class="myButton">Click here</span>
looks like<span class="myButton">Click here</span>
, there is no rendering as defined by the CSS classmyButton
.I do not remember for sure how I did it, but I could make the link to look like a centered button instead of the current left-aligned link. Before I undertake a process of restoring old backups to check how I did it, I guess that the “link text” field allowed html (e.g.
<span class="myButton">Click here</span>
), cf. the field “Content of topic first post”.Can the “link text” be made to permit html or a shortcode so that I can attach some CSS to it?
Forum: Plugins
In reply to: [Post Comments as bbPress Topics] How to customize link to the topic?I moved the question into a new thread.
You are misusing HTML. Use the tags, such as heading tags (h1, h2…h6) to mark up what an element is, e.g.
<h1>This is my highest level heading</h1>
. Use CSS to attach styles to elements.The tag
strong
indicates an important piece of text, cf. to the tagem
. It does not indicate a heading.So my advice is to run a search and replace to have proper tags for headings.
Forum: Plugins
In reply to: [Table of Contents Plus] Does it work for French texts?The short answer: The plugin is language-agnostic.
A longer answer: The plugin works on headings, that is on the h1, h2…h6 elements, that are on a page. What these elements contain will be the lines in the table of content, i.e. if such a heading element contain something WordPress can display, that will be a visible row in the TOC.
Forum: Plugins
In reply to: [Table of Contents Plus] Plugin suddenly stopped workingTake a look at the thread with the name “New update broke the plugin“. Does the solution there solve your issue?
Forum: Plugins
In reply to: [Table of Contents Plus] Plugin suddenly stopped workingYou may want to look at this support forum for a solution.
Forum: Plugins
In reply to: [Aurora Heatmap] Does not collect dataHello!
I have been busy with other tasks. There seems to be a larger issue with some snippets not loading. I apologise for the noise.
Forum: Plugins
In reply to: [Post Comments as bbPress Topics] No buttonI found a work-around.
- Use CPanel’s file manager (or FTP) and go to
plugins → bbpress-post-topics → templates
. - Open the file
comments-bbpress-link.php
. - Locate the line that begins with
<a href="php bbp_topic_permalink…
- Replace it with
<a href="<?php bbp_topic_permalink( $bbp_post_topics->topic_ID ); ?>"><?php echo "<button>" . esc_attr($link_text) . "</button>"; ?></a>
This will output a button with the text you give in the settings. Naturally the button uses whatever formatting your theme has defined for buttons.
- This reply was modified 2 years, 2 months ago by Juha Mets?kallas.
My use case was a little more complex and I tried to simply it, but it seems I simplified it too much. And of course, after an hour from my posting I came up with a solution, which while not perhaps the prettiest one, works and is reasonably easy to maintain.
A website has a WPForms form for subscribing a newsletter. Actually there need to be six forms for the same thing. The site has subsections in three languages and it seems that there must be two variants of the form for each language depending on where the form should be displayed on a page, whether at the bottom or at a sidebar (do not ask why, I did not create the site).
What I ended up doing was six forms (three languages by two CSS settings), but only three shortcodes (for three languages) to output the form title and description and the shortcodes have a custom parameter for picking up the right variant of the form.
Anyway, thank you!
PS. This is an awesome plugin.
Forum: Plugins
In reply to: [wp-mpdf] Character encoding issueMy theme contains the definition utf-8, my codepage setting is utf-8. And I had the encoding working before the update. I have no idea of those other encodings, since utf-8 is the correct. What should I check next?
Forum: Plugins
In reply to: [wp-mpdf] Greek Characters Encoding IssueI have this issue too with the newest wp-mpdf 3.7.1on WP 5.9.1. What encoding settings do I need to tweak? I have had utf-8 now under several versions and now suddenly I get question marks.
- Use CPanel’s file manager (or FTP) and go to