5

Themes bundled with WordPress are licensed under "GPLv2 or any later version" in full (both code and assets). You can reuse and resell that code, as long as you abide by the GPL license, effectively meaning — resulting product's code (and assets if you use them) must be under either of: GPLv2 or later GPLv2 strict GPLv3 with all the implications of.


4

Look in the parent theme's functions.js. It looks like an implementation of the "sticky footer" concept. The margin is being set via script: var body = $( 'body' ), _window = $( window ); /** * Adds a top margin to the footer if the sidebar widget area is higher * than the rest of the page, to help the footer always visually clear * the sidebar. ...


3

How can we force has_post_thumbnails() to return false? Method #1 - disable theme support: You can remove the post thumbnails support from the backend, with function twentythirteen_child_setup() { remove_theme_support( 'post-thumbnails' ); } add_action( 'after_setup_theme', 'twentythirteen_child_setup', 11 ); but notice that this will not remove the ...


3

I just want to add to @Rarst answer. I came to understand that quite a lot of the code seems to be the same Yes, the bundled themes are written by the Wordpress team, so you would expect the coding styles between the bundled themes to be the same. Can I do the same thing, using code from those themes? This was handled by @Rarst, but I would like to ...


2

Tested on a Twenty Thirteen & Twenty Twelve child theme. Try this from your child themes functions.php file. You can add the image using various methods. add_filter( 'wp_nav_menu_items', 'wpsites_add_logo_nav_menu', 10, 2 ); function wpsites_add_logo_nav_menu( $menu, stdClass $args ){ if ( 'primary' != $args->theme_location ) return $menu; $...


2

I looked at TwentyThirteen's twentythirteen_fonts_url() function and there are no hooks so you need to deregister twentythirteen-fonts and enqueue your own fonts. Removing the fonts is easy: function deregister_gfonts_wpse_111190() { wp_deregister_style('twentythirteen-fonts'); } add_action('wp_enqueue_scripts','deregister_gfonts_wpse_111190',100); ...


2

I would like to refer back to this answer on one of your previous questions about this subject. As said in that answer, you should never make changes to the twenty thirteen theme, and for that matter, to any theme/plugin you are not the author of, this includes core files as well. But I don't quite understand, how to put the 2 above changes in the ...


2

Child theme can override any file in the parent theme: simply include a file of the same name in the child theme directory, and it will override the equivalent file in the parent theme directory when your site loads. For instance, if you want to change the PHP code for the site header, you can include a header.php in your child theme's directory, and that ...


2

First of all, do not change any files in the twenty thirteen theme. The reason been, twenty thirteen is updated regulary, so if you made changes to the theme, you WILL loose everything you have done to the theme. You should create a child theme You need to change the function that set the header height to get your image correctly cropped. This function can ...


2

Here you go. Since you already have the menu-id all you need is: $menu_item_defaults = array( 'menu-item-db-id' => $menu_item_db_id, 'menu-item-object-id' => 0, 'menu-item-object' => '', 'menu-item-parent-id' => 0, 'menu-item-position' => 1, ...


2

In regard to WordPress post paged, I would use /player-12345 or other structure as url specific page rather than /player/12345. How to create new url structure for page Creating additional url structure, you need WP_Rewrite, there are a couple of filters that you can fire with your function. For Page, you can filter page_rewrite_rules. See example code on ...


2

You can add a filter to page_link to modify link output: function wpd_add_fragment_to_pages( $url ) { return $url . '#navbar'; } add_filter( 'page_link', 'wpd_add_fragment_to_pages' );


1

@AlexanderFarber, there are many way to attach attribute class under wp_nav_menu link. I agree with @Sumit, adding page links in Appearance > Menu WordPress take care of current-menu-item class or current_page_item class. Also, this way is best practice to handle your nav menu in the future. Create dynamic link in wp_nav_menu Since your question related ...


1

The simple answer is NO, You can not! CSS stand for Cascade Style Sheet which mean to style elements in cascade order. CSS can not change the DOM. There are two ways to achieve it. Overriding header.php Using JavaScript or jQuery (Not recommended) Method 1: Copy the header.php to your child theme and modify href link with what you want! Example: <a ...


1

Comments aren't in the "footer", they are in the Loop, and they need to be to keep their association with the parent post. That is why you are having trouble. You are moving them out of the context that Core expects. What you are going to have to do, I think (and I haven't tested this), is explicitly pass the post ID to the relevant functions-- comments_open(...


1

There are many approaches to this. This is because the position: absolute on the sidebar-container is making it overlap over the footer. Try this CSS to override. This is a static solution: body.single .hentry // Selects the single posts { min-height: 2000px; // Set this according to the height of the sidebar } This one is a better solution: To work ...


1

If you are using a recent version of wordpress it gives you the option of changing the header image in the CUSTOMIZE menu option (left bar under APPEARANCE) when you upload a new image it will ask you to crop it to the position you want. If you have otherwise uploaded a replacement image via FTP (or other method) then you might try adding .site-header { ...


1

You should be using get_the_date, rather than the_time (which will just echo the value). And always quote string arguments. $date = sprintf( '<span class="date"><a href="%s" title="%s" rel="bookmark"><time class="entry-date" datetime="%s"><span class="date--day">%s</span><span class="date--month">%s</span><span ...


1

The function that handles thumbnail size is already hooked with after_setup_theme in \twentythirteen\functions.php. There is no use adding a if (!function_exists()) in child functions.php because the child functions.php is always loaded before. So this would be more logical to find this in the parent file. The answer would be to set a different prority to ...


1

In TwentyThirteen, there are many files, their names're started with content: content.php content-none.php content-aside.php content-audio.php content-chat.php content-gallery.php content-image.php content-link.php content-quote.php content-status.php content-video.php Among them, except the first two, all the others are for different post types, and you ...


1

You could add a custom field to the pages with the value being your image path and then code that variable in the header.php of your child theme. Check out get_post_meta It might look something like this if the field name was headerImage. $headerImage = get_post_meta( get_the_ID(), $headerImage, true ); get_the_ID grabs the current post or page ID.


1

I don't see any hooks available to help you hook your function. As you are using child theming, so take the copy of the header.php file from the parent twenty thirteen theme and paste it in the child theme folder and make the changes. This will work.


Only top voted, non community-wiki answers of a minimum length are eligible