andersbalari
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Call A Function When Printing Or Opening Print PreviewThanks, Steve!
I try to load all images which haven’t been loaded by means of a lazy load plugin, which leads to missing images when the user doesn’t scroll to the end of the page.
Forum: Fixing WordPress
In reply to: Widget Areas Not Visible In BackendThe widgets are correctly displayed, the issue’s just affecting the backend. It is caused by a plugin relating to Google Analytics, just like @sarawatsonim suggested. When I deactivate it, all widget areas are displayed correctly in the backend.
Thanks @sarawatsonim !
- This reply was modified 9 years, 5 months ago by andersbalari.
Forum: Fixing WordPress
In reply to: Actions in Backend Don't Work: Try to Load PHP FileThanks, I’m going to check this.
Forum: Everything else WordPress
In reply to: Malign Code Injected Into ALL .php FilesThanks for your replies!
I already had proceeded very similar to the process eldoradoseo has outlined.
Manually cleansing all the custom .php-files for which I didn’t have an appropriate backup really was a pain in the a…
The site is up and running again.
As I use security plugins (WordFence on one of the attacked sites, which could be repaired with simply restoring the backup file; and the successor of “Better WP Security” on the other two sites that were affected) I think the attacks might have been successful only due to a security leak in the “MailPoet” plugin – the developers had sent a warning in a timely manner, however, I didn’t find time to update to the fix they provided until it was too late. Thus: Mea culpa.
Forum: Fixing WordPress
In reply to: CSS Problems in Chrome and SafariThanks a lot! It now works – however, some errors I couldn’t sort out as they are produced by third party plugins which I want to use. And I don’t want to change the code of those.
Forum: Plugins
In reply to: [Plugin: Polylang] Custom Field Content OverwrittenI should have queried the forum first, sorry!!! The problem was that I had opted for custom field synchronisation in the admin tab. Once I unchecked this option everything worked fine!
Forum: Plugins
In reply to: [Plugin: Polylang]Wrong Textdomain Language on StartpageOh, now I understood, finally! 🙂
Indeed, this was the problem – I edited the entries and now it works fine! Thank you very much!
Forum: Plugins
In reply to: [Plugin: Polylang]Wrong Textdomain Language on StartpageThanks for your reply!
Both in database and in wp-config.php the locale is set to de_DE.
When I leave my backend admin setting to “WordPress default”, I get a German backend – but I get an English admin bar in frontend. When I opt for “German” in this setting, both the backend and the frontend admin elements are in English (while the option “English” leads to the expected result)!
I tested xili-Language, but installed Polylang before – I had it deactivated when I tested xili. Xili is deleted, also the entry in the options table of my database.
Still I encounter my problem. 🙁 So what can I do?
Forum: Fixing WordPress
In reply to: Custom Placement of Jetpack's/Sharedaddy's SharingIn my experience, I have to check the box for the CPT I’m trying to add this to, but then if I add the PHP echo, it shows up twice instead of just once.
What do you mean with CPT? I’m not familiar with this abbreviation.
@andersbalari do I need to remove the filter for every loop or can I just add the remove_filter lines once to my functions.php?
It should work to remove the filters within your functions.php – just give it a try and let us know the result ;-).
Forum: Fixing WordPress
In reply to: Custom Placement of Jetpack's/Sharedaddy's SharingHi Iva,
are you sure that you proceeded exactly as suggested? All has to take place within the loop. The filters have to be removed before the content or the excerpt is displayed and
<?php echo sharing_display(); ?>has to be placed within the loop as well.… Once I have added the filter …
Is this just a typo? The filters have to be removed, not added, in order to override the automatic placement.
If you don’t manage to make it work, just post the relevant code sections.
Cheers
Anders
Forum: Fixing WordPress
In reply to: Custom Placement of Jetpack's/Sharedaddy's SharingUnfortunately this was not working for me. I was using Automattic’s own Toolbox theme. So I had to comment out the add_filter from the plugin editor. I guess I just have to watch out everytime Jetpack is updated.
That’s puzzling me. Why should
remove_filternot work? Did you make sure that you had no typo and placed the code in the correct position? Being dependant on manual corrections after each plugin-update is both dangerous and uncomfortable.Forum: Fixing WordPress
In reply to: Custom Placement of Jetpack's/Sharedaddy's Sharing@mesayre: It is puzzling that you got just a blank page – when I tested the error the respective pages where displayed correctly up to the erroneous code line and then there was an error message, just as one would expect.
I see no reason why function_exists should not work, perhaps you might want to try it again.
@admturner: is_plugin_active in my opinion is too general for the case in which Automattic changes the plugin just as mesayre warned above.
Forum: Fixing WordPress
In reply to: Custom Placement of Jetpack's/Sharedaddy's SharingThanks for the information. That indeed is a problem!
This works for me:
<?php if ( function_exists( 'sharing_display' ) ) remove_filter( 'the_content', 'sharing_display', 19 ); ?> <?php if ( function_exists( 'sharing_display' ) ) remove_filter( 'the_excerpt', 'sharing_display', 19 ); ?>and
<?php if ( function_exists( 'sharing_display' ) ) echo sharing_display(); ?>