cse7
Forum Replies Created
-
Here is the URL on the UPS site from which one can request an Access Key: https://www.ups.com/upsdeveloperkit?loc=en_US
It is step 4 in the “How to Get Started” section.Forum: Fixing WordPress
In reply to: /wp-admin creating redirect to a page that is “not found”Resolved: my hosting company updated the .htaccess file. It looked the same to me before and after, so I don’t know what they changed. All is good in the world again.
There are a few plugins available that make it easy to add HTML snippets as a “short code.”
Forum: Themes and Templates
In reply to: Stop wp_login.php from loading non-admin stylesI found the solution in a posting from three years ago. The new functions.php file looks like this:
<?php // register styles wp_register_style('parent-style', get_template_directory_uri() . '/style.css'); // load styles only if this is not an admin or login page global $pagenow; if ( ! is_admin() && 'wp-login.php' != $pagenow ) wp_enqueue_style( 'parent-style'); ?>Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeHere’s what works:
<?php // register custom script location, dependencies and version wp_register_script('search-toggle', get_stylesheet_directory_uri() . '/js/functions.js', array(),'1.0', true ); // enqueue the script wp_enqueue_script('search-toggle'); ?>I’ll keep testing the complete site, and I expect no surprises. Thanks for your help and patience.
Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeNo luck making that change.
The functions.php file in the child theme is supposed to add to the instructions of the function.php file in the parent theme, so I don’t yet understand what is happening. I tested simple php code in the child functions.php to display the date, and it worked as expected.Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeI have deactivated the customized functions.php file in my child theme.
If I activate the customized functions,php file, I get a blank page when I go to http://ewingconsulting.com/demo/wp-admin
Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeA am using a plain version of WordPress 4.4.1 and of TwentySixteen. The only changes other than styling are the ones we are discussing here. The site works fine again (without the search-toggle function) when I deactivate the customized functions.php file.
Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeOops.
Creating in my child theme a funcions.php file that contains only this script prevents wp-admin from opening.- Is there a way to avoid this?
- Can I “import” the fuctions.php file from TwentySixteen like I do for the style sheet?
- Do I have to duplicate the other content from the TwentySixteen theme in the functions.php file of the child theme?
- Sould I add this script at the end of the TwentySixteen functions.php file?
Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeThat works!!!! Thank you so much for your time.
Perhaps others will be able to use this thread to add the search-toggle function to their themes as well.
Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeThanks for all your help. I have read a few tutorials about how to add the wp_enqueue_script function with no success.
– Can you give me some more direction?
– Do I create a functions.php file within my child theme?
– Including these instructions in the functions.php file gives me errors:<?php function load_my_scripts() { wp_register_script('.search-toggle', bloginfo('child-theme-name').'/js/functions.js'__FILE__)); wp_enqueue_script('.search-toggle'); } add_action('init', 'load_my_scripts'); ?>Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeThat’s it. I did not load the script.
– What’s the best way to do this?
– Is this the modified code from TwentyFourteen I would have to add somewhere?:
<script type='text/javascript' src='http://domain-name.com/wp-content/themes/child-theme-name/js/functions.js></script>Forum: Plugins
In reply to: [Column Shortcodes] Responsive formatting not what I expectedI am glad others can take advatage of my contributions. I certainly get a lot of helpf from others.
Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeThanks for taking the time to help on this. I suspected the page was not finding the script propertly.
– I am using a child theme with the latest TwentySixteen theme.
– I put the script (above) in the “functions.js” file of the js folder within the child theme.Forum: Fixing WordPress
In reply to: Adding search toggle to twentysixteen child themeI am working on a demonstration site for a client. I remove the search realted code from the header, when I am not working on it.
Here (http://ewingconsulting.com/demo/search-toggle-display/) is a page with a screen capture of the search-toggle in action.
I can inspect the html generated by the page and the class “hide” does not get removed when I click on the “search-toggle.” Thus, the search box does not appear as desired.
<div id="search-container" class="search-box-wrapper hide"> <div class="search-box"> <form class="search-form" action="http://ewingconsulting.com/demo/" method="get" role="search"> </div> </div>I can delete the style for “hide” to allow the search box to appear for testing.