{"id":16,"date":"2005-08-10T17:33:54","date_gmt":"2005-08-10T22:33:54","guid":{"rendered":"1916937813"},"modified":"2005-08-11T12:16:32","modified_gmt":"2005-08-11T12:16:32","slug":"skins_stubs_and_templates","status":"publish","type":"post","link":"https:\/\/fraynelson.com\/blog\/2005\/08\/10\/skins_stubs_and_templates\/","title":{"rendered":"Skins, Stubs and Templates&#8230;"},"content":{"rendered":"<p>By default, all pre-installed blogs are displayed using a skin. (More on skins in another post.)<\/p>\n<p><p>That means, blogs are accessed through &#8216;<code>index.php<\/code>&#8216;, which loads default parameters from the database and then passes on the display job to a skin.<\/p>\n<p><p>Alternatively, if you don&#8217;t want to use the default DB parameters and want to, say, force a skin, a category or a specific linkblog, you can create a stub file like the provided &#8216;<code>a_stub.php<\/code>&#8216; and call your blog through this stub instead of index.php .<\/p>\n<p><p>Finally, if you need to do some very specific customizations to your blog, you may use plain templates instead of skins. In this case, call your blog through a full template, like the provided &#8216;<code>a_noskin.php<\/code>&#8216;.<\/p>\n<p><p>You will find more information in the stub\/template files themselves. Open them in a text editor and read the comments in there.<\/p>\n<p><p>Either way, make sure you go to the blogs admin and set the correct access method for your blog. When using a stub or a template, you must also set its filename in the &#8216;Stub name&#8217; field. Otherwise, the permalinks will not function properly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, all pre-installed blogs are displayed using a skin. (More on skins in another post.) That means, blogs are accessed through &#8216;index.php&#8216;, which loads default parameters from the database and then passes on the display job to a skin. Alternatively, if you don&#8217;t want to use the default DB parameters and want to, say, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/fraynelson.com\/blog\/2005\/08\/10\/skins_stubs_and_templates\/\" class=\"more-link\">Continuar leyendo<span class=\"screen-reader-text\"> &#8220;Skins, Stubs and Templates&#8230;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1138,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-biblioteca"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/fraynelson.com\/blog\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fraynelson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fraynelson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fraynelson.com\/blog\/wp-json\/wp\/v2\/users\/1138"}],"replies":[{"embeddable":true,"href":"https:\/\/fraynelson.com\/blog\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/fraynelson.com\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/fraynelson.com\/blog\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fraynelson.com\/blog\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fraynelson.com\/blog\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}