The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Christiaan Punter
Forum Replies Created
-
Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 13, 2020 at 9:41 am #262808Brilliant, that works beautifully! And the page now also loads nice and quick. Thanks Trevor!
Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 12, 2020 at 4:09 pm #262732Alas, that results in a Syntax Error, preventing the code to be added:
“Your PHP code changes were rolled back due to an error on line 1082 of file wp-content/themes/theblog/functions.php. Please fix and try saving again.”
syntax error, unexpected ‘||’ (T_BOOLEAN_OR)
FYI: line 1082 holds the following line of your code: if ($sf_current_query->is_filtered())||($sf_current_query->get_search_term()<>””)||is_page(25640)) {
Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 12, 2020 at 3:19 pm #262722Alas, that seems to work when loading the page for the first time but after the first different search, the Related Post content is again shown after each Search and Filter result.
Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 12, 2020 at 2:27 pm #262713That fixed it, thanks Trevor!
Now the only remaining issue is the repeated Related Post content and the speed issue that is, hopefully, related to this.
Related Post Plugin page: https://pickplugins.com/item/related-post-for-wordpress/.
There is some information on the plugin developer’s site on how to disable the Related Post content on a particular page but I can’t get that to work, perhaps this may help you: https://pickplugins.com/documentation/related-post/action-hook/related_post_main/
Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 10, 2020 at 12:14 pm #262646Ok no worries, thanks for the help so far.
Just to confirm: the last code does make the text jump halfway over to the left but it’s still not fully aligned. Looking at it using Google Inspect, it seems that the elements within the ul section that you are moving have a 10px padding themselves. But that can wait until after the weekend:-)
Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 10, 2020 at 11:37 am #262642It just occurred to me that there is another instance where custom CSS can be added, in the Customizing –> additional CSS section of WordPress. I pasted the code there and voila, the bullet points are gone. However, the fields are still in the same positions, too far to the right. They should align more to the left, right above the “Found 709 results” text.
You can see the result here:
https://www.hifi-advice.com/blog/search-and-filter/?sf_paged=2Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 10, 2020 at 11:20 am #262638What would not work? I think Skype desktop share will save a lot of typing…
I am adding the code in the Custom CSS section of the theme. See the snapshots that I shared earlier. This does work for lots of other stuff. Alternatively, there is also direct access to the actual php theme files, as also shared on the screengrabs.
Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 10, 2020 at 11:12 am #262634This reply has been marked as private.Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 10, 2020 at 10:55 am #262630I copied the text from this very page and it pastes correctly. After saving it turns to
“& g t ;” (without the spaces). When I paste that text as it appears in the Custom CSS box after saving into this web form, the form corrects it again. (hence my earlier comment having twice the > symbol.Christiaan Punter in reply to:
Align fields and make them non-bullet points and remove Related Post content(Private) October 10, 2020 at 10:51 am #262626I’ve tried this in the theme’s Custom CSS box.
As with the earlier code you supplied, the > character is not accepted and is changed to >
-
AuthorPosts