hwtech
Forum Replies Created
-
Well I am answering my own question.
I found a work around that doesn’t involve moving the “insert shortcodes” button.
Rather than turning off media buttons bar which includes “insert shortcode” I found and commented out the code to insert the “Add Media” button.
/* remove Add Media button only, in wp-admin/includes/media.php find and comment this line add_action( 'media_buttons', 'media_buttons' ); */
In general for removal of a specific button from media buttons bar if you grep for “media_buttons” you can find the add_action function and comment it out.
from root of wp install will find all
grep -r "media_buttons" *
What is confusing is the the first instance of ‘media_buttons” in add_action refers to the bar, and the second to a specific button’s function. The WP folks made a bad choice and called that function ‘media_buttons`, instead of something sensible like ‘add_media’.
Forum: Hacks
In reply to: config file defined value used in a shortcoethx, that works, all in one line.
Just in case some uses this I corrected your code for with the missing shortcoder variable delimiter
<img src="<?php echo PHOTOBASE_URL; ?>&&%%filename%%">
just thought WP might support special delimiters for access to app defined variables kinda like the double % used by shortcoder.
Forum: Themes and Templates
In reply to: [First] Warning messages after upgrading First Theme.resolved
Forum: Themes and Templates
In reply to: [First] Warning messages after upgrading First Theme.Well, seems as if there was no actual menu created/saved (in appearances/menu). Which makes sense with the warning message. Once I did and then assigned it to a location in your template the warning stopped. So I guess the warning was doing it’s job, just a bit cryptic.
Forum: Themes and Templates
In reply to: [First] Warning messages after upgrading First Theme.I am running php PHP Version 5.5.9-
Don’t want to change my warnings levelTo the authors of this theme.
See this post. Things have changed since php 5.4+
https://stackoverflow.com/questions/8900701/creating-default-object-from-empty-value-in-phpForum: Themes and Templates
In reply to: [First] Warning messages after upgrading First Theme.loaded this into a fresh wp install so no potential conflicts. Warning message still appears
Warning: Creating default object from empty value in /var/www/duranguito.org/wp-assets/themes/first/inc/customizer.php on line 422 Warning: Creating default object from empty value in /var/www/duranguito.org/wp-assets/themes/first/inc/customizer.php on line 423
Forum: Plugins
In reply to: [WP-Filebase Download Manager] Using another folder than "uploads"Found a setting so answered by own question?
set upload path to wp-content/media
But unfortunately sync is not finding any of the files already in that folder and adding them to the db.
just keeps saying “Nothing changed!”
Clicked “complete file sync” same thing
added a photo to media folder.
Clicked “complete file sync” still “Nothing changed!”
Any thoughts as to why?
Forum: Plugins
In reply to: [JP Markdown] Change text editor toolbar to markdown supporthttps://www.killersites.com/wordpress/videos/configure-wordpress-text-editor.php
Might have answered my own question unless someone knowns of a better say then editing a javascript file