Keeping shortcode-generated widget and theme element in one line [closed]

To get rid of the bullets and change the alingment you’ll need CSS. For the top portion: aside.widget_polylang.amr_widget, aside.widget_polylang.amr_widget ul, aside.widget_polylang.amr_widget li { /** align with li */ display: inline-block; float:right; /** remove bullets */ list-style: none; } ul.social-icons { /** align with li */ display: inline-block; float: right; } For the bottom portion: aside.widget_polylang … Read more

Sample widget code which get data(1-5 record) from Wp_Admin panel and display to Homepage(WordPress Custom Theme)

As everyone commented above, you need to explain where you are having problem, there are a lot of ways to achieve what you want to do, Option 1 : Advance Custom Field Plugin: https://wordpress.org/plugins/advanced-custom-fields/ this can help you to create custom fields at the admin panel and display them at front-end, please see the plugin … Read more

how to add multiple menu in custom menu widget?

You can find the WP_Nav_Menu_Widget class in wp-includes/default-widgets.php:1059 Simply copy the class (with new name – Example: Foo_Nav_Widget) to your functions.php file. Edit the form method and replicate the select option (with new id/name) and any variables associated. Edit the widget method, replicate any associated variables and call your second nav menu underneath the current … Read more

Text Widget Not Working

Your posts are too wide and are overlapping the sidebar. Try changing your CSS to: .entry-content { width:55%; } Revision: #secondary.widget-area{ display:block; position:relative; } This isn’t a WordPress question, but since I’ve started trying to help I thought I’d see it through.

Random disappearance of footer widgets [closed]

Look at the “widgets_init” functions in your theme. There might be other conditions registered for the widgets. If the widgets are registered correctly with no other conditions. Next, the best place would be at the template. Look at the template where the widgets are added. There might be some “if” functions that might be controlling … Read more

How to show WordPress Dashboard Widgets on Frontend?

After trying to build dashboard functionality on the “frontend” of a site, the WPMU multi-site alternative was to seriously minimize, strip-down, and customize a template for the user type that required that functionality. They login directly to the dashboard, or can be linked their from their account page when logging in. Everything you described is … Read more

Extending Widgets – Exclude # of posts field from Recent Posts Widget

You need to add a ‘form’ method. That is the method that creates the widget form on the backend. In the current default widget, that method looks like this: function form( $instance ) { $title = isset( $instance[‘title’] ) ? esc_attr( $instance[‘title’] ) : ”; $number = isset( $instance[‘number’] ) ? absint( $instance[‘number’] ) : … Read more

Using AJAX in a Widget to Sort items [closed]

The script you are loading will apply the sortable to all elements with the .mywidget-list class just after the document has loaded. Once you drop your widget inside a sidebar, a new .mywidget-list element is created trough $.ajax, which cannot have your sortable function attached to it, because it’s new. If you save the widget, … Read more