Can anyone give me a clue how this menu system was created? https://40thdems.org/ This is a WordPress site using the Divi theme. Thanks in advance for any pointers!
I'm writing a plugin that relies on custom post types, new taxonomy and few custom fields. All this data will be private (not queryable or searchable). I'd like to provide an admin page to the user, to add and edit this data in a more user-friendly way. For instance, the custom post type will have only a title and the excerpt field, one taxonomy and the custom fields. I know how to add meta boxes to a custom post type, …
I modified my posts widget in Elementor with a custom skin in order to show multiple badges with following code: /* MULTIPLE BADGES ON POST */ /* --- */ add_action( 'elementor/widget/posts/skins_init', function( $widget ) { class cards_multi_badge_skin extends \ElementorPro\Modules\Posts\Skins\Skin_Cards { protected function render_badge() { $taxonomy = $this->get_instance_value( 'badge_taxonomy' ); if ( empty( $taxonomy ) ) { return; } $terms = get_the_terms( get_the_ID(), $taxonomy ); if ( ! is_array( $terms ) ) { return; } ?><div class="elementor-post__badges"><?php foreach( $terms as $term …
How to change the Wordpress Plugin Watson Assistant Chatbot BOX Size? The CSS code below changes the height from below to top but not from top to below. I want to decrease the chatbot BOX size from top to below but I am not able to do it. The Code is written in adittional css part of wordpress . @media (min-width: 640px) { #watson-float { top: 0; right: 0 !important; } #watson-box { width: 35vw !important; height: 95vh !important; } …
I created a custom plugin for login and registration forms. When I log in for a new user, 4 cookies are set : PHPSESSID, wordpress_test_cookie, wordpress_logged_in_, and 2 wordpress_sec_ . But I don't have wp-settings- and wp-settings-time-. However my admin account has these cookies. I can't find a wordpress documentation that explain which function set these cookies. It is just said : Without plugins installed, WordPress sets the following cookies: wordpress_[hash] wordpress_logged_in_[hash] wordpress_test_cookie wp-settings-{time}-[UID] I don't use "setcookie" at the …
I’m making a site with BuddyPress xprofile fields which can have up to 40000 options. I already loaded the options into the db via csv file. Now the site loads very slowly and is basically unusable. Without the many field options, it loads fast. Once loaded, everything works fine, including the profile search. How can I prevent Buddypress from loading all options for a field by default? I’m using select2 multiselect fields, which can load small chunks of data via …
I am using multipress, but users with small screens cannot access the HTML tab as the Publish meta box has a div that slides above it, disabling the ability to click it. One idea is to force a single column layout, but there are no options for this in screen options. Is there another way to do it?
Earlier in this thread I asked a question on how to create a multi level admin roles for multisite management. Create multi level admin role After creating the roles and having their personal dashboard, I'll like to add custom reports to each dashboard with UI graphs. The reports should consist of all website each admin manages. Are there plugins that presently help with ease of achieving this? If not, please help with a guide to work with. Thanks.
I see that some plugins like Wordfence can write on core folders like wp-includes or wp-admin (if write permission is enable). In case everything is permitted, is there a way to interact with the hosting from admin dashboard only? Assuming this is on the site installation folder only. See also: • Is there a way to figure out the way to access hosting if I have admin privilege? • WordPress file manager plugin that can change file permission? in Software …
I've made a simple plugin to style the WP default backend. <?php /* Plugin Name: Admin CSS Description: Custom Admin style. Made by LOOT Author: LOOT Version: 1.2 Author URI: http://weareloot.com */ function admin_theme() { wp_enqueue_style('admin_theme', plugins_url('adminstyle.css', __FILE__)); } function topbarstyle() { wp_enqueue_style('topbarstyle', plugins_url('topbarstyle.css', __FILE__)); } add_action('admin_enqueue_scripts', 'admin_theme'); add_action('login_enqueue_scripts', 'admin_theme'); add_action('admin_enqueue_scripts', 'topbarstyle'); add_action('wp_head', 'topbarstyle' ); ?> Then I have a bunch of CSS files and some colours defined in the topbarstyle.css like this: /* General Colours */ :root { --color1: …
What I'm looking to do is completely hide the UI for a custom post type from specific user roles...Ive previously found many resources on how to disable access to using those CPTs but nothing that really allows you to completely hide the CPT UI all together based on what user is logged into the dashboard. This is important since I need clients to completely stay out of custom post types for the store, and if they can see the store …
In the block editor, when clicking to add a new block, the popup shows an accordion with the first item expanded ("Most Used"). How can I change it so that all the items are initially collapsed?
I got everything working based on this: https://gist.github.com/pento/cf38fd73ce0f13fcf0f0ae7d6c4b685d its just that the toggle does not get the visual representation of being toggled on. Any tutorials on this? Everything I find is complicated "real" blocks stuff tons of imports and this react style returns and things I do not need at this point. I just want to know how to get the toggle to work. PHP <?php function register_gb_block() { // ... register_assets(); register( [ 'handle' => 'arve-block', 'src' => plugins_url( …
My goal: A custom post type with a complete custom editor page and post list table. I have set show_ui to false. It removed the UI section. But if some admin puts direct link (wp-admin/edit.php?post_type=custom_post) in the browser, it takes them to the post table page, and clicking from there takes to editor page. How can I stop this? I don't want anyone to get access to this two pages. I have made two custom pages for them. Or is …
I have found a article about this filter but I am supposed to pass a array of allowed blocks to it. This is what I got so far that ddd is my debugging function from Kint Debugger it reveals that the $allowed_blocks contains a bool true value rather then a array of all blocks I expected. So where do I get a array of all blocks? What a horrible WP API. add_filter( 'allowed_block_types', __NAMESPACE__ . '\remove_core_video_blocks' ); function remove_core_video_blocks( $allowed_blocks …
sorry maybe its off topic but i couldn't find any answer in oceanwp and woocommerse forums i use oceanwp them and elementor for design and my problem is main menu hide single products tittle this is the site URL you can see main menu hide product tittle http://45.32.113.186/wpdemo1/shop/women-black-dress/ this is another issues http://45.32.113.186/wpdemo1/shop/50-to-do-in-vietnam/ when page load time i can get this view and if i refresh i get this how can i fix this issues? note: if is off topic …
Good day! I am still learning on how to use wordpress. I have created my website in localhost then wanted to update my live site using my newly created website from localhost. I noticed that when I try to update it, some of my plug-ins produce an error while the plug-in(Beaver Builder which is in current version) is not functioning very well. Some pages, when I try to edit got its row messed up (THE LIVE SITE) (FROM LOCALHOST) Sometimes …
I am trying to implement this feature in plugin myStickymenu, so that the specific pane displays at scrolling down 500px (which works) and then hides again when scrolling back up to 1000px. I understand this could probably be done by: Extending functionality using the custom CSS features. I have tried stuff such as #mysticky-nav .myfixed { margin:0 auto; float:none; border:0px;background:none; max-width:100%; } #mysticky-nav.wrapfixed.down { visibility:visible } #mysticky-nav.wrapfixed.up { visibility:hidden } Editing the plugin to add another option for disable on …
Custom taxonomies are great. I registered a bunch of new taxonomies and wrote an importer to import our hierarchical taxonomy into WordPress a la XML. The problem is one taxonomy has about 1,100 terms and browsing a checklist of 1,100 things is cruel and unusual punishment. Is there any way to have a hierarchical taxonomy but use the Tag interface (search box with auto complete) instead? Update: this code from Bainternet's answer gets most of the way there (adds tag …
Since a few days, I have incredible problems with a one WP blog. Long story short, a few examples: the media shows an empty page, but I can upload files, albeit with a strange interface, like old-style, and images are indeed uploaded. In the pages/posts edit interface, I can't switch between visual and text, and I can't do anything with images - the buttons are like dead. If I make some changes in a post or page and switch to …