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

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>

WordPress aggressively caching CSS

WordPress doesn’t actively participate in the process of actually serving your stylesheet file. It links to it in page source, but as actual physical file the handling of it isn’t done by WordPress core and passed to the webserver to be served as any static file would be. ?ver=3.9.1 is added by default, if actual … Read more

prevent HTML output if custom field is empty [closed]

Just a simple php if to check the contents of the field before outputting markup. <?php if( $second_comment = get_field(‘second_content_block’) ){ ?> <div class=”page-content-text-additional”> <?php echo do_shortcode(“[vr_jsp] $second_comment [/vr_jsp]”); ?> </div> <?php } ?> You can eliminate the need for adding the class via js using the same method. Some friendly advice- spending a day … Read more

Use special fonts on a non-hosted WordPress blog

@Clemzd First off you @font-face css is missing a few lines that are required for a font to work correctly across all browsers and platforms. You only have one src url in your @font-face css. Take a look at how my @font-face css is written. My font files are inside a folder called fonts inside … Read more

Overwriting forced wordpress CSS styles [closed]

Some of these plugins and frameworks allow you to disable the default styles which then allows you to copy theirs and then alter it for your theme. But let us say that isn’t going to be possible. Then you need to have a higher CSS selector precedent than their CSS. The easiest way to copy … Read more

WordPress Caption Formatting

Don’t know what was the actual problem. Using following syntax to display content solved problem. <div> <h tag><?php the_title(); ?></h tag> ………….other things like date and author <div> <?php the_content(); ?> </div> </div> Any way, thanks for everybody who tried to answer my question.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)