Your problem is due to your trying to include
a file over the http protocol. That kind of include
is disabled on your server– hence the message saying pretty much just that.
Use get_template_directory
instead, which will give you a filesystem path.
If that does not solve it, post your code in more context. Disjointed like that, it is near impossible to test anything.
Related Posts:
- Programmatically add widgets to sidebars
- changing wp-admin/widgets.php
- Text Widget creates a
- Get Widget Instance inside Widget
- Add the sidebar/widget editor to the post edit screen?
- WP_Widget deprecated error in WordPress V4.3
- What is the quickest way to make a widget?
- How do i manually place a widget code
- How to Validate Widget Input
- Remove before_widget / after_widget content from Wp_Widget_Text
- How to avoid widgets added to sidebar on theme activation?
- Big side banners
- How to execute SQL SELECT query and see the results?
- Display specific widgets in different area’s around the page
- Need help adding additional controls to a custom widget Part 2
- How to add the widgets manually to the sidebar?
- How to check if widget has automatic title
- /images/image.jpg not working in sidebar
- Unable to save widget contents
- Use wp_enqueue_style based on user option in widget
- When you register a sidebar in WordPress, is it possible to choose in what order it appears in the admin
- Creating a admin widget for /wp-admin/post.php?
- dynamic_sidebar() returns false in admin section
- Moving comments section to left of content (Twenty Thirteen)
- Custom Tag Cloud widget missing tags
- How the widget can be run by shortcode
- add widgets to dashboard for easy access for clients?
- Adding custom html and standard widgets to sidebar
- How to add new sidebar widget area to child theme?
- Get widget Title from widget id
- Include chat (HTML, js, css) in all pages of WordPress
- Uses Cases for the Calendar Widget
- Problem with widgets
- How to make multi -column, interesting home page in Weaver 2010?
- Multilple single-use widgets with the same output callback
- wp_editor is not rendering shortcode
- Recent Posts – Show all posts
- Widgets missing after update
- Dashboard Widgets – Add Admin Page With Same Functionality
- Debugging / displaying errors in WP_Widget->form()
- Help with custom widget options! (saving checkbox option)
- How to filter products using filter products by attribute widget and OR logic between different product attribute types?
- How to add multiple footer widgets?
- WP – Genesis – How to get the content of a widget in php? [closed]
- Default widgets assignment – isn’t working
- Save Multiply Checkboxes in a Widget
- Displaying info in a sidebar
- wp_get_attachment_image() not displaying post images even though wp_get_attachment_url() echo correct urls
- Create a simple widget
- what is the best way to add things to a side bar
- Disable a plugin’s widget
- Cannot change footer text?
- Trying to filter tag cloud args, but it removes the wrapper
- How to add custom tinymce plugin to new text widget
- What widgets are used on a page? [closed]
- Create Dashboard Widget with form to keep team’s record
- How do I get an array of widgets?
- How not to display an instance of a widget dynamically?
- Can’t save widget
- Twenty Twelve Widget Taking Space
- Conditional widget_form_callback
- Issue with checked() echoing on to page
- Add a widget to a static front page
- Register new widget
- Problem with WP_Query loop and search term
- How to use register_sidebar’s ‘before_widget’ unique id generator into its other parameters like ‘before_title’?
- Set a dashboard widget to the top?
- How to decorate WP_Widget_Text?
- After adding widget the style is messing up
- Tabs widget from Elementor is not showing the content in it to users. But at admin side it is working fine
- Widget title showing below widget
- Siderbar implementation with collapsible bootstrap cards
- Title not Emptying in a Widget
- How to implement widgets error output with data validation?
- Simple SCript Not Displayed in WIdth
- Conditionally Load a Script if a Certain Widget is Shown on a Page
- Where to add a widget class?
- Does current page contain widget or sidebar
- Active Sidebar Conditional Question?
- Paginate recent posts widget
- Pass widget variable to external function
- Widget front-end fails to echo as expected from checkbox
- Adding Widgets to Reactor Theme (based on Foundation 4)
- Creating an custom admin page for editing widgets
- Help me tidy up my widget code
- Neaten content — different widget or CSS change?
- Show or hide a widget from pages
- Author Link in Recent Posts Widget
- Custom widget breaking widget section in admin menu
- Unique widget id in sidebar
- Taxonomies not showing in WP Dashboard Right Now widget
- trying to Change to wp_register_sidebar_widget
- Custom widgets do not appear in dashboard > appearance > widgets
- How to delete Jetpack Widgets from the Widgets page in admin panel [closed]
- Can’t use is_home in template-functions.php
- How can I order the “Woocommerce Products Widget” by the sales date? [closed]
- Widget does not work with WooCommerce enabled
- how to add multiple menu in custom menu widget?
- How can I add a toggle element into an image box element? [closed]
- Custom dashboard widget – load style only for added widget