Dave
Forum Replies Created
-
Forum: Plugins
In reply to: [Client Dash] What is “widgets” tab for?So this was an another site/server, and same thing, with this error message displaying when wp_debug on:
Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Sidebar 1” sidebar. Defaulting to “sidebar-1”. Manually set the id to “sidebar-1” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/iscservi/public_html/2017/wp-includes/functions.php on line 4139
Forum: Plugins
In reply to: [Gravity 2 PDF] Example PDF doc?thanks
Forum: Plugins
In reply to: [Advanced Custom Fields: Gravity Forms Add-on] No idea how this worksDoes it embed the gravity form on the admin site, or the front-end?
Forum: Plugins
In reply to: [WPGlobus - Multilingual WordPress] how to make only one flagHow can I display the 2 letter language abbreviation rather than the full name?
Some variation of this I’m guessing:
WPGlobus::Config()->en_language_name[ $lang ]
Forum: Plugins
In reply to: [WPGlobus - Multilingual WordPress] Language switcher shortcode or PHP?Thank you. Apologies, I did look here and google for a while too.
Forum: Plugins
In reply to: [WPGlobus - Multilingual WordPress] Apparant ACF conflictAlmost worked – need to add “!important” to the end of that CSS.
Thank you.
Forum: Plugins
In reply to: [WPGlobus - Multilingual WordPress] Apparant ACF conflictThis is the WordPress default WYSIWYG field I’m having issues with, not an ACF WYSIWYG field, but the issue is only occurring when ACF is active.
Forum: Plugins
In reply to: [Basic User Avatars] Solution- avatar's not showingHaving same issue, have tried both the above and the first is showing a huge image, the second has made no difference at all.
Forum: Themes and Templates
In reply to: [GeneratePress] Change width when mobile menu appearsWell you would definitely clear any cache after making a change like that, but that would be simple to have a notice appear after this kind of update reminding a user of that.
- This reply was modified 8 years, 7 months ago by Dave.
Forum: Themes and Templates
In reply to: [GeneratePress] Change width when mobile menu appearsThanks for that. Would probably be advisable to include as an admin option somewhere.
Cheers.
If you can let me know when this is updated that would be great. This is for people to submit photos on Instagram, so can’t be just a single account.
Thanks.
For those needing to make this change (and in the absence of any hook to do so without editing the plugin code), the line to comment out is line 1259 in core.php (true as of plugin version 1.10.5).
The commented out line is as follows:
$icon = wp_get_attachment_image_src( get_post_thumbnail_id( $postID ), apply_filters( self::PREFIX . 'featured-icon-size', 'thumbnail' ) );
I cloned and renamed the plugin so future updates don’t save over this customisation.
So the issue seems to be the strange way this plugin uses featured images. If you have a featured image on a post, it uses that as the marker, which doesn’t work very well if your featured image is to display an image at the top of the post page (the standard use of featured image).
So seems like this requires some code customisation, unless there’s a hook to change this. Can the developer at least provide info on whether there is a hook to change this, or whether I’m going to need to fork the plugin and change the code in the plugin?
Thanks.
Forum: Plugins
In reply to: [Basic Google Maps Placemarks] Customise info window contentOkay, worked it out, thanks for your help. This is the code I now have that shows the title, a shortened amount of content, and a link to the post. Hopefully it helps someone else:
function addBGMPInfoWindowPermalink( $placemarks ) { $newPlacemarks = array(); foreach( $placemarks as $placemark ) { $post = get_page_by_title( $placemark[ 'title' ], 'OBJECT', 'bgmp' ); $content = $post->post_content; $shortcontent = substr($content, 0, 100); $placemark[ 'details' ] = $shortcontent.'...<br />'; $placemark[ 'details' ] .= '<a href="'.get_permalink( $post->ID ).'">Details</a>'; $newPlacemarks[] = $placemark; } return $newPlacemarks; } add_filter( 'bgmp_get-map-placemarks-return', 'addBGMPInfoWindowPermalink' );
Forum: Plugins
In reply to: [Basic Google Maps Placemarks] Customise info window contentAnd this is what I don’t understand (and why I was hoping for some documentation):
If I remove the line “$post = get_page_by_title( $placemark[ ‘title’ ], ‘OBJECT’, ‘bgmp’ );” then common sense says that no title should show in the pop-up, just the link I added below that line. But the title still does show.
Are you able to give me the exact code to replace the above that will show just some custom text in the pop-up?
Happy to pay for your help, just at present it’s not very clear of how to edit the above to work.
Thanks.