swedish boy
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Disable TinyMCE on taxonomy descriptions?But this topic is still not resolved!!!
Forum: Plugins
In reply to: [Yoast SEO] Disable TinyMCE on taxonomy descriptions?Thank you for your answers. The later is actually a solution I for some reason didn’t think of. It of course is possible to disable tinyMCE completely with wp-hooks for a specific section. ??
My bad. Wasn’t the plugin causing it. Something else. Don’t bother. Remove or close this topic.
I also want to point out that WPs function term_description automatically wraps the output within
<p>
tags which mean you can end up with nested paragraphs using the rich-text editor.
https://codex.www.ads-software.com/Function_Reference/term_descriptionForum: Fixing WordPress
In reply to: Remove trailing slash using .htaccess in WordPressIt’s important to mention that if the permalink structure has a trailing slash WordPress will always redirect the URL with a trailing slash which means any alternate rules in .htaccess won’t help.
Forum: Plugins
In reply to: [Online Backup for WordPress] no response on request to reset passwordI will try to see if it’s possible to create a plugin that adds the option to upload a backup to Dropbox using BackupTechnologies backups since their own system can’t be used (at the moment). I’ll post any info here if I succeed.
Forum: Plugins
In reply to: [Online Backup for WordPress] no response on request to reset passwordSame here. Not getting any mail when creating an account either.
I think their servers mail system is not working at the moment!Forum: Hacks
In reply to: date_i18n and timestampsThanks John for the tip.
The function to use is
get_date_from_gmt()
then.Forum: Hacks
In reply to: date_i18n and timestampsYes. You’re right.
But it’s good to point out how it works for others who might expect it to translate time and date to given timezone. (Since it does this when you don’t feed it a custom timestamp).
I also don’t understand the last flag you can pass to
date_i18n
, boolean whether to convert to GMT or not?I also don’t really see the point of
date_i18n
function over PHP’sstrftime()
if you have the right PHP-locale installed?Forum: Plugins
In reply to: [Theme My Login] Remove hyphen ( – ) signI don’t think it’s TML‘s fault.
Check your css to find a solution.
The Lost Password link is wihtin a
<li>
tag.Check your stylesheet for anything like:
li:before { content: " - "; }
Forum: Plugins
In reply to: Auto-open widget area.My bad. The last post will hide all areas when going into widgets without a location.hash.
This will work better:
if(location.href.search(/widgets.php/) != -1) { jQuery(document).ready(function() { // object exists? if(location.hash && jQuery(location.hash)) { jQuery('#widgets-right .widgets-holder-wrap').addClass('closed'); jQuery(location.hash).parent().removeClass('closed'); } }); }
Forum: Plugins
In reply to: Auto-open widget area.and to close all other widget areas at the same time one can add the following
if(jQuery(possible_id)) { jQuery('#widgets-right .widgets-holder-wrap').addClass('closed'); jQuery(possible_id).parent().removeClass('closed'); }
Thanks for the feedback!
Will look into it.
Great plugin otherwise! Keep up the good work!Forum: Hacks
In reply to: Show a custom widget area through $_GET ?I found a way of acomplishing what I want with javascript and passing a simple anchor (#) to the URL. The bonus is that I can pass location.hash directly to jQuery to target a widget-area id.
First i queue a admin.js to be loaded on all admin pages. (if i want the same scripts for other hacks). I could also have queued it only on widgets.php using $hook (see: https://codex.www.ads-software.com/Plugin_API/Action_Reference/admin_enqueue_scripts#Example:_Target_a_Specific_Admin_Page)
function load_admin_js() { wp_register_script( 'admin-js', get_template_directory_uri() . '/admin.js', 'jquery' ); wp_enqueue_script( 'admin-js' ); } add_action( 'admin_enqueue_scripts', 'load_admin_js' );
Then in my admin.js i look for widgets.php in the url and then
if(location.href.search(/widgets.php/) != -1) { jQuery(document).ready(function() { possible_id = location.hash; // object exists? if(jQuery(possible_id)) jQuery(possible_id).parent().removeClass('closed'); }); }
And voila. If I call “wp-admin/widgets.php?#sidebar-id” I open that sidebar’s widget-area.
Forum: Hacks
In reply to: Show a custom widget area through $_GET ?an option would of course be to add a edit_widget_area_link function to the core and add this functionality to the widgets.php