Giri
Forum Replies Created
-
AuthorPosts
-
Hey Brian, can you disable JetPack for a while? I’m unable to login
Brian, Please test now.
Thanks
ok thanks
We are rewriting our custom fields. Other than that nothing new as far as I know.
Stiofan told me middle of next week if everything goes as planned.
Thanks
r = 4
w = 2
x = 1So
rw- r– rw-
means
4+2+0 4+0+0 4+2+0 = 646
So please make it 777. It should look like
rwx rwx rwx
instead of
rw- r– rw-
I cannot modify file permissions using wp admin.
Thanks
Brian, I think i have fixed that bug. can you test it and let me know?
Thanks
I have already explained for hover zoom images that its not possible.
If you are talking about Photo tab, they also use background images. Thats just means image code look like this.
<div class="geodir_thumbnail" style="background-image:url('img-url-goes-here');"></div>
By adding alt tag to div, you are not getting anywhere other than getting html validation errors.
If you need alt tag, then you need to rewrite that part to use img tags. In this case you need to hire a good wordpress developer.
Good luck
Brian, I’m working on it. Will give you a reply today.
Thanks
Hey Mark,
I have added a filter to exclude both title and desc fields.
I believe you are talking about the link business feature that comes with events addon and not cpt addon.
If you are talking about event addon link business feature use the following code
function geodir_business_auto_fill_excluded() { return array('post_title', 'post_desc'); } add_filter('geodir_business_auto_fill_excluded', 'geodir_business_auto_fill_excluded');
If you are talking about cpt addon link business feature use this code
function geodir_cpt_business_auto_fill_excluded() { return array('post_title', 'post_desc'); } add_filter('geodir_cpt_business_auto_fill_excluded', 'geodir_cpt_business_auto_fill_excluded');
If you are talking about both, use both code blocks.
Please note: Although you can place the code in your child theme now, it will start to work in our next release since I have modified some code in our development version of event addon and cpt addon.
Thanks
Sorry about the confusion. You can try pasting this code in your child theme.
remove_action('geodir_after_edit_post_link', 'geodir_payment_display_expire_date_on_detail', 10); add_action('geodir_after_edit_post_link', 'custom_geodir_payment_display_expire_date_on_detail', 10); function custom_geodir_payment_display_expire_date_on_detail() { global $post; $show_expire_date = get_option( 'geodir_listing_expiry' ) && get_option( 'geodir_payment_expire_date_on_detail' ); $html = ''; if ( $show_expire_date ) { if ( geodir_is_page('detail') && !empty( $post ) && isset( $post->post_author )) { $post_expire_date = geodir_get_post_meta( $post->ID, 'expire_date', true); $post_expire_time = strtotime( $post_expire_date ); $current_date = date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); $expire_date_text = __( 'Unknown', 'geodir_payments' ); $expire_date_class = 'geodir-expire-unknown'; if ( $post_expire_date != '0000-00-00' && $post_expire_date != '' && ( geodir_strtolower( $post_expire_date ) == 'never' || $post_expire_time > strtotime( date( '01-01-1970' ) ) ) ) { if ( geodir_strtolower( $post_expire_date ) == 'never' ) { $expire_date_text = __( 'Never', 'geodir_payments' ); $expire_date_class = 'geodir-expire-never'; } else { $expire_date_text = geodir_payment_time_diff( $post_expire_time ); $expire_date_text = date_i18n( geodir_default_date_format(), $post_expire_time ) . ' (<font class="geodir-expire-diff">'.$expire_date_text.'</font>)'; $expire_date_class = $post_expire_time >= strtotime( $current_date ) ? 'geodir-expire-left' : 'geodir-expire-overdue'; } } $html = '<span class="geodir-expire-date ' . $expire_date_class . '"><font class="geodir-expire-label">' . __( 'Expire date: ', 'geodir_payments' ) . '</font><font class="geodir-expire-text">' . $expire_date_text . '</font></span>'; $html = '<p class="geodir_expire_date"><i class="fa fa-calendar"></i> ' . $html . '</p>'; } } if ( $html != '' ) { echo apply_filters( 'geodir_payment_filter_expire_date_on_detail', $html ); } }
Let me know how that goes.
Thanks
You are welcome..
You cannot set
alt
tag for those hover zoom images. Because they are not using
img
tag. They are just background images of a div. Background images doesn’t support alt tags.
Hope thats clear.
Hi I have changed some code to override from theme. It will be available in the next version
Please take a look at this changes and let me know if you need any help
https://github.com/GeoDirectory/geodirectory/pull/274/files
Please note you need new templates should go here
/wp-content/themes/theme_name/geodirectory/popup-forms.php
In other words Don’t put the files in theme root. Put inside geodirectory folder.
alexi84, If you want I can add a filter to override template path.
-
AuthorPosts