Add a #hash to the links in my custom menu
Goto Appearance -> Menus -> Create a new menu -> Add your link as custom link
Goto Appearance -> Menus -> Create a new menu -> Add your link as custom link
Its just a css thing… while the distance from the top object is to remain permenant the distance from a side object is relative and those changes (sometimes) as the screen resulotion changes.. That prevents smaller screens from having a broken site. Anyhow thats the old way to go about it (in a matter of … Read more
In regard to this comment: I see – I had things nested incorrectly in my functions.php file – I found that the register_nav_menus() call should not be nested within the theme setup function (function hchw_setup()) To the contrary, inside a callback hooked into after_setup_theme is exactly the right place for calls to register_nav_menus(). Your problem … Read more
Menu items are a post type, and the menus to which they belong are taxonomy terms. So to create a post type in order to get a metabox from which you can add menu items seems a bit redundant (effectively duplicating every ‘special item’ in the database). In any case, setting the post type’s visibilty … Read more
I would rather just set the width and let the height be automatically adjusted to the proportion, so I won’t even have to crop the images. If the images are not all the same proportion then some cropping will have to be done. If you want to avoid cropping then you’ll need to make sure … Read more
Well I think I seem to be doing what I was intending too. Thanks @Milo for pointing me in the right direction! As You can see below I used the get_page_template_slug(); and str_replace() to filter through the templates used per page. Can someone Verify that this is a viable option? $args = array ( ‘post_type’ … Read more
You can add this to your VagrantFile for “shared folders:” config.vm.synced_folder “/path/to/your/host/projectfolder/theme”, “/path/to/your/vagrant/wp-content/theme”, owner: ‘www-data’, group: ‘www-data’, mount_options: [“dmode=775”, “fmode=664”] http://docs.vagrantup.com/v2/synced-folders/basic_usage.html
You shouldn’t be using a constant (in your case CORE_THEME_NAME) for the textdomain. This is because the call to __ is parsing your code, not running it. Simply said: it’s not looking up the value of the constant. So, it won’t translate. Quoting the famous Otto: Inside all translation functions, no PHP variables are allowed … Read more
Once the widgets are being evaluated, the head of your site is completed, so you cannot use wp_head anymore. Adding <style> tags is an option, but will indeed generate a warning from the validator. Using the customizer is possibly confusing, because it is supposed to be about theme looks in general, not about specific widgets. … Read more
Here is the template layout and code for your original question. I am using wp_get_recent_posts as it gives me recent posts from the category as you wanted, if not change orderby to rand for random posts, as wp_get_recent_posts return posts by default in array form you can also have a choice to shuffle them. I … Read more