alphavader
Forum Replies Created
-
AuthorPosts
-
Here the Code for Hiding the Box, when user is not logged in.
(worked for me – maybe for other users aswell)// Add and Remove class when user is logged in - hide loginbox if ( is_user_logged_in() ) { // if logged in - remove the class function remove_body_class($wp_classes) { foreach($wp_classes as $key => $value) { if ($value == 'hide_edit_button_logged') unset($wp_classes[$key]); // Replace "has-right-sidebar" by Your Class that yoU Want to Remove } return $wp_classes; } } else { //if not logged in - add class to the body function my_custom_body_class($classes) { // add 'my-class' to the default autogenerated classes, for this we need to modify the $classes array. $classes[] = 'hide_edit_button_logged'; // return the modified $classes array return $classes; } // add my custom class via body_class filter add_filter('body_class','my_custom_body_class'); }
And CSS:
.hide_edit_button_logged .geodir-details-sidebar-user-links { display:none; }
Thanks
THanks –
this Code helped me with that
// Custom Info Sidebar Order function gd_custom_change_sidebar_content_order() { return array( 'geodir_detail_page_more_info', 'geodir_edit_post_link' ); } add_filter('geodir_detail_page_sidebar_content', 'gd_custom_change_sidebar_content_order');
I also would provide alot of snippets from this project – do you have a wiki or interest in that ?
Thanks man, that helped alot.
Is it possible to put the geodir-details-sidebar-user-links BELOW the infobox ?This reply has been marked as private.I dont want to have the favorite – so when its now my own project – there is only the favorite button – but its disabled.
Is there a way only to show the edit button and if the box is empty – then no box at all ?
This reply has been marked as private.Hi,
thanks alot – did you do the thing described above ?
When the user isnt logged in – there is still this “box” – can i remove this ?Thanks – the button is exactly what i wanted.
This reply has been marked as private.Can you have a look please.
Also is it possible to add it via Codesnipped.
Just a button “edit” – under the info-sidebar-area.
THe button only appears when the project owner is logged in and views his project
in detail.When he clicks on the button, the project goes in the preview mode and he can edit things.
This would be so clean and nice!
January 23, 2017 at 11:38 am in reply to: cant find "listing title" & "listing description" in the po file #347799Thanks alot – looks good!
Can Kiran please say what he changed?
Cause this is an Test Server – iam working on another branch and
the release will be this evening.
Also id like to know if he had change some core files – or iam able to update ?Thanks for the great support. I will recommend this plugin
to further clients.January 23, 2017 at 9:37 am in reply to: cant find "listing title" & "listing description" in the po file #347777one open thing – the translating but i described on the first post!
January 23, 2017 at 9:36 am in reply to: cant find "listing title" & "listing description" in the po file #347776I love u – thanks alot!
THanks alot thats it!
So i have to edit this css for all custom post types.
Maybe ill give them the same class.This reply has been marked as private.hmm then i must have disbaled them somehow.
Can i add a button with calling this function ? -
AuthorPosts