Tag Info

New answers tagged

0

Try (just change the names): add_action( 'init' , 'myyy_remove' , 15 ); function myyy_remove() { remove_action('ACTION_NAME', 'my_function_name_Something' ,11); remove_action('ACTION_NAME', 'my_function_name_Another' ,11); }


0

Just add the full path: background-image:url('http://www.example.com/wp-content/themes/sage/assets/images/el_tracks.jpg'); or background-image:url('/wp-content/themes/sage/dist/images/el_tracks.jpg');


-1

my apologises.. I had found the answer to my questions...i forgotten that i had to go under customise to change the header options to omit the buttons. just had to choose none in the header options- header right block content. thanks for your help zakir


0

It's nearly impossible to give you a solution without checking your parent theme header section code. But you can simply add a line of CSS #site-banner-right { display: none; } to hide that button.


0

Follow the instructions as listed at http://codex.wordpress.org/Child_Themes Specifically, in your wp-content/themes folder: create another directory named Tesseract-child in Tesseract-child create a style.css file in your style.css file include the following header style.css contents: /* Theme Name: Tesseract Child Theme URI: ...


0

... from a custom Wordpress page template to my child theme functions.php file... You can't. And a global variable won't help. The theme's functions.php file loads first, before any other templates load. You can't pass variables backwards to something that has already loaded. What I think you want to do, based on what your code appears to be trying ...


0

Your header is comprised of two spans which define their own width (at desktop view): <div class="container"> <div class="row"> <div class="span3"> <!-- I have a width of 270px at desktop view --> <div id="logo"> <!-- your logo here is constrained to the parent span width of 270px ...


1

Check this codex page. In the event that a child theme is being used, the parent theme directory URI will be returned. So if you want to include your other css files you just need to all your CSS files: add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent', ...


0

As ialocin mentioned some requirements will require extra customizations. I can create a number of passwords to access the page You would create user accounts. Passwords don't exist without users. An expiration date can be set for each password This isn't implemented in wordpress and requires the most work. You could probably store a date in ...


0

i fix it and yes it was cache problem i download this plugin and its work fine now http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-website-not-updating-right-away/


0

Basically all you need to do is to import all the posts/pages from the sub-site to a new URL. First you will need to setup a new, fresh WP install e.g example.local (on localhost), then you need to export all the contents from your website (e.g example.com) on remote server, finally import all the contents (using XML file from step 2) to example.local ...


0

Your .htaccess is not readable (like the error noticed). So make your .htaccess readable using permission 644. Source Now check again, perhaps now your stylesheet will be loaded? If not, check if the stylesheet file is readable. May this not be the cause, check the owner of the files.


0

This is likely a tweak the theme author made to make the images in the theme responsive or adaptive. You may want to look at adding "min-height" to your CSS and this should address your problem. https://css-tricks.com/almanac/properties/m/min-height/ Also another thing to note if you using "100%" anything the actual dimension is governed by the parent ...


0

@Vee's method will work, but if you want to keep it hidden from display use this method : .search-form .screen-reader-text { overflow: hidden; clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; } It looks like you have a jetpack custom css plugin installed so just add this there, then you don't have to ...


1

Context: accessibility guidance says forms should have labels. The theme designer obviously decided they didn't want the label there but used that CSS trick to move it without (completely) disobeying the guidance. However, that code only hides the search form label off the left of a page in English (or other Left to Right language). Since Hebrew is Right ...


0

It is due to css: Check this(Line # 314 style.css): .search-form .screen-reader-text { left: -9999px; overflow: hidden; position: absolute; } Remove the left margin then it works fine. It is on sidebar search form. Sorry for English. Thanks


1

Now that you have mastered modifying a Wordpress Theme you are ready to create your own. There are many ways to go about this, and it's up to you to figure out what is best for you. Personally, I like to use a Wordpress Theme framework. My favorite is called Sage (formerly known as Roots). There are other Wordpress Theme Frameworks such as Genisis, Redux, ...


1

You setup a Wordpress site in a subdirectory/subdomain or any url of your choice. So, the path structure is up to you. Add all the files and database info in this site. Activate the same plugins and themes. Disable search engine indexing for this site. Set up so that published posts and everything else on the live site are added automatically in this site ...


2

In this case i will do: create a new folder inside website root folder (ex: mynewsite) create a new db and import the old website db to it copy old website files and folders to the new directory (mynewsite) change db name, user etc in wp-config on mynewsite folder define site url by adding to wp-config.php ...


0

I found the solution in WordPress documentation. By setting WP_CONTENT_URL in wp-config.php file fixed my problem.


0

You need to change the URL in database. WordPress use relative URL. Check this guide for migrating WordPress, how to make changes in database directly. Thanks


0

I was able to do this a while back by following this WooCommerce tutorial: There may come a time where you would like change the text displayed on a product's page when it is In Stock or Out of Stock. Simply add the following code to the 'custom functions' area of your functions.php file: /** * Change In Stock / Out of Stock Text */ ...


1

Scripts should be enqueued on wp_enqueue_scripts action hook, which runs after init action. So dequeuing on init won't work because sripts are not enqueued yet. Before enqueued scripts are printed, wp_print_scripts action is triggered so you can dequeue or unregister scripts safely at this moment: add_action( 'wp_print_scripts', 'drw_timelinr_dequeue' ); ...


0

If loadScripts() is registered/enqueued correctly (the code posted doesn't show the hook used) then is it enqueued on wp_enqueue_scripts which runs well after init so what you are doing is trying to remove something that hasn't been added yet, and will be added later. Assuming that: add_action('wp_enqueue_scripts', 'drw_timeline_js', PHP_INT_MAX); ...



Top 50 recent answers are included