Forum Replies Created
-
AuthorPosts
-
rrosen326
ParticipantI copied the entire section with the conditionals to my functions.php and it worked.
But is there a way to set it as a hook, so that if the theme ever changes any of those conditionals, mine just adds on after? (ie: right now I replace their code. I’d like to supplement it.)
rrosen326
ParticipantVery weird – I was monkeying around with it in firebug, and if I edit the html and put anything before the <table> element it pulls back and works fine. Eg:
<div class=”tribe-mini-calendar-grid-wrapper”>
PUT ANYTHING HERE – EVEN &NBSP;
<table data-nonce=”8a2bde4873″ data-tax-query=”” data-eventdate=”2014-09-01″ data-count=”5″ class=”tribe-mini-calendar”>*admin removed html past here
rrosen326
ParticipantWorked perfectly – thanks!
rrosen326
ParticipantActually, I would love a little help – my wordpress skills are weak.
The theme does this:
// Admin scripts enqueuefunction cs_admin_scripts_enqueue() {
$template_path = get_template_directory_uri() . ‘/scripts/admin/media_upload.js’;
wp_enqueue_script(‘my-upload’, $template_path, array(‘jquery’, ‘media-upload’, ‘thickbox’, ‘jquery-ui-droppable’, ‘jquery-ui-datepicker’, ‘jquery-ui-slider’, ‘wp-color-picker’));
wp_enqueue_script(‘custom_wp_admin_script’, get_template_directory_uri() . ‘/scripts/admin/cs_functions.js’);
wp_enqueue_style(‘custom_wp_admin_style’, get_template_directory_uri() . ‘/css/admin/admin-style.css’, array(‘thickbox’));
wp_enqueue_style(‘wp-color-picker’);
}
In the themes ‘css/admin/admin-styles.css’ is: .form {display: none};
So, I need to override that.
I created a child theme, but just setting .form {display: block} in the child themes style.css or /css/admin/admin-styles.css doesn’t work. So, I guess I need to hook into the admin page and wait til after the theme enqueues the style, and THEN override the .form{} style. But I don’t know how to do that.Any tips?
rrosen326
ParticipantNever mind – figured it out. This is a dup too:
rrosen326
ParticipantOk – forget that last point – that was an irrelevant problem (fixed).
Here’s what’s weird – looking at the elements on the page (using chrome debugger), the proper elements ARE there (eg: <h3>General Settings</h3>), they are display:block, but aren’t showing for some reason. Any idea why?
rrosen326
ParticipantOne additional point: I turned on WordPress logging and there are no errors in the wp-content/debug.log file or the apache php error file from this page)
Though I AM getting the following php errors on other successful pages:
[22-Aug-2014 17:31:09 UTC] PHP Warning: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/wordpress/wp-includes/class-http.php on line 895
[22-Aug-2014 17:31:09 UTC] PHP Warning: stream_socket_client(): unable to connect to tcp://laurelhurst.dev:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /var/www/wordpress/wp-includes/class-http.php on line 895 -
AuthorPosts
