New answers tagged

1

The cookie is stored on the user's computer. The page is generated on the server. Somehow, you must make sure the cookie is transported back to the server when the user clicks on a link to fetch a second page. The instrument for this is javascript. You must send a script with the page that reads the cookie and adds the cookie content as a query_var to any ...


0

Got it done using - .site-header-main { /* -webkit-align-items: flex-start; */ /* -ms-flex-align: start; */ /* align-items: flex-start; */ position: absolute; text-align: center; float: right; display: table; } .site-title{ display:inline; vertical-align: middle; font-size: 30px; font-size: 2rem; line-height: 1.25; ...


1

For themes installed from official repository WordPress will have much of the process automated, offering update and handling the process. For third party themes it's a manual process (unless they implement similar update functionality themselves). You can upload a theme archive via Appearance > Themes > Add new > Upload theme in WordPress admin. If I ...


0

Taking a quick look, it seems as though it uses CSS Flexbox, which is making the elements wrap. .site-header-main { align-items: center; display: flex; flex-wrap: wrap; } Here are some resources which may help you get a handle on this https://css-tricks.com/snippets/css/a-guide-to-flexbox/ http://www.sketchingwithcss.com/samplechapter/cheatsheet.html


0

I suspect glob needs the current working directory to work, so you could try passing the full path of the file to the existing function you have... include_all_php(dirname(__FILE__).'/includes'); Or set the current working directory first: setcwd(dirname(__FILE__).'/'); include_all_php('includes'); Alternatively you could also use scandir: $filepath = ...


1

It's outputting the word Array which is self explanatory. Instead of direct echoing it, you will need to turn the array into a string. Try implode, something like: Tags: <?php $my_theme = wp_get_theme(); echo implode(', ', $my_theme->get( 'Tags' ) ); ?>


1

It is mostly matter of personal preference how to structure this. The typical approaches are: CSS import (used to be popular, but considered kind of meh now); enqueue parent stylesheet as dependency and customize with rules in your stylesheet (more files, less trouble); copy parent stylesheet into child completely either once or repeatedly via build tools ...


3

You'll be unable to automatically update the parent Divi theme when it's directory becomes renamed. You can use any of caching​ plugins with CSS minify or/and CSS combine turned ON. This way everybody will see /cache directory instead of the actual theme directory. Or as the alternative, you can update renamed parent theme manually, directory by directory, ...


1

You would have to rename the directory of the Divi theme. However, this could break the theme if there are components that depend on the directory being named Divi. Also, there may be copyright issues.


1

There are three things to check: 1 - Is your parent theme complete and what is the exact spelling of the parent theme's name in its style.css. Uppercase and lowercase are important. 2 - Is the child theme directory named parentname-child. It should be in the themes directory, not in a subdirectory of the parent theme. 3 - Does the child theme's style.css ...


0

This CSS will make your grey text in some else you want: .widget_posts_wrap .latest-posts .col-md-12 a span {color:#your-hex-code !Important;} This is for subtitles in this widget where you have latest post. And this is for titles: .widget_posts_wrap .latest-posts .col-md-12 h3 a {color: #your-hex-code !important;} Also just note to change ...


-1

function wpbootstrap_checksidebars_widgets($sidebars_widgets) { return $sidebars_widgets; } add_filter('sidebars_widgets','wpbootstrap_checksidebars_widgets' ); //Now user can add custom widget areas function custom_widget_areas_init() { register_sidebar( array( 'name' => 'Front Page Widget Area', 'id' => 'frontpage-widgets', ...


0

Images that are uploaded through WordPress are saved to /wp-content/uploads/ independent of your theme or child theme, and commonly accessed through helper functions (e.g. the_post_thumbnail()) that will output HTML, including the image path(s). Therefore I'm ruling out that this is what you are trying to do. Instead I'm assuming you are trying to load ...


0

For inherited parent theme you need to add Template lines in child theme. Please read this https://codex.wordpress.org/Child_Themes /* Theme Name: Twenty Fifteen Child Theme URI: http://example.com/twenty-fifteen-child/ Description: Twenty Fifteen Child Theme Author: John Doe ...


0

If you want to be super safe, you can do this method: I would recommend first connecting to the theme folder via FTP. If you haven't made any templates or custom php pages etc, you can rename the theme folder _backup at the end. Then just drag in the new theme in the same theme folder location. Simply go to your dashboard and activate the new theme. ...


0

What happens depends on the changes made to the parent theme. The developers should of course make certain that their new version is backwards compatible, so your child theme still works with the updated parent. However, this is not necessarily so. Therefore, you should test the updated parent with your child theme before you apply it to a live site.


2

There's no need for the wp-content/themes path - both themes sit in the same directory, so you can just traverse up one and then back down to child theme: background-image: url(../child-theme-name/images/some-image.png); Update: Regarding your answer to "where is the CSS file stored", you inferred that the stylesheet resides in the child theme folder - in ...


2

Sorry I can not comment yet on this site Could you be removing an action before it is registered? Have you tried wrapping this with an on init hook? Perhaps using remove_filter would be a better choice. function my_init() { remove_filter( 'storefront_header', array( 'Galleria_Structure', 'galleria_top_bar_wrapper' ) ); remove_filter( ...



Top 50 recent answers are included