is there a way to get all queued scripts/styles into a template without `get_header()`?

the_header() does not even seem to be native WP function? Technically getting header isn’t what really causes styles and scripts to load, it’s wp_head() call that should be made there (and wp_footer() call in footer). So they are likely what you should be using. If you do need something lower level you might want to … Read more

Assign Custom classes to every Excerpt

Firstly, there are syntax errors in your (last block of) code. And secondly, you don’t need to add any specific class at all. Just use the post ID for each post: <article id=”post-<?php the_ID(); ?>”> <div class=”post-content”> <?php if (‘excerpt’ === $gantry->get(‘blog-content’, ‘content’)) : ?> <div class=”excerpt”> <?php the_excerpt(); ?> </div> <?php else : ?> … Read more

Odd spacing in Navigation Bar [closed]

That issues is often encountered when using inline-block on elements. Could be fixed with a good CSS reset when starting the theme (may force you to rewrite lots of css sections) or by making the menu “li” elements display block and float left instead. Check my screenshot how I “fixed” your problem. image link

styling isnot working in wordpress theme

Having template files in different folders has nothing to do with styles not working. View page source and make sure the right stylesheet is loaded. If its loaded, then double check if there is any other rules thats overriding your needed rules for specific class. Try adding !important to the css definitions and see if … Read more

Change the search icon in twenty fourteen

This is more of a simple CSS question than actually related to WordPress. However, you need to change your style.css. As TwentyFourteen does not use images, but pseudo css-classes, you need to change this as well: .search-toggle { background: #fff url(‘http://www.citizen-science.at/wordpress/wp-content/themes/cs/img/search-icon.png’) no-repeat; background-size: 30px; background-position: 10px; } .search-toggle:before { content: “”; } By the way, … Read more

How to add class to an html output element in tinyMCE paragraph drop down menu

In my opinion, using the Styles dropdown is useful to show that the particular style you are adding is special and not the theme’s standard element styling for p, h1, h2, etc. The examples in the Codex to be pretty good at outlining this: http://codex.wordpress.org/TinyMCE_Custom_Styles // Callback function to filter the MCE settings function my_mce_before_init_insert_formats( … Read more

current_page_item is missing inside wp_nav_menu

If you’re not actually using a custom nav menu, why are you not just outputting wp_page_menu() directly? Problem As-implemented, your walker will never be executed (or, more accurately, you can’t control whether or not it is executed), because you’re not passing ‘theme_location’ (correct usage) or ‘menu’ (sub-optimal usage) to the args array. Here’s how the … Read more

Using css class selectors on a specifc page [closed]

This is off-topic, as it’s a CSS question, not a WordPress question. That being said.. You need to attach your class to your tag. Use: img.activities { /* stuff here */ } Your current CSS selector targets this: <span class=”activities”> <img src=”https://wordpress.stackexchange.com/questions/145611/image.png”/> </span>