Apply custom style to single word in WordPress

Solved it… In my functions.php I should have put: array( ‘title’ => ‘Hidden Element’, ‘inline’ => ‘span’, ‘classes’ => ‘hiddenElement’, ‘wrapper’ => false, ), not array( ‘title’ => ‘Hidden Element’, ‘block’ => ‘span’, ‘classes’ => ‘hiddenElement’, ‘wrapper’ => false, ), as here: http://www.wpbeginner.com/wp-tutorials/how-to-add-custom-styles-to-wordpress-visual-editor/

bloginfo(‘stylesheet_directory’) vs. get_stylesheet_directory_uri() and include(‘file.php’) vs. get_template_part()

get_stylesheet_directory_uri() returns a value, it doesn’t print anything. So you have to use: echo get_stylesheet_directory_uri(); get_template_part() is just a wrapper for locate_template(). But the latter has one advantage: It returns the path of the file it has found. Try the following: $path = locate_template( ‘sidebar-front.php’, TRUE ); echo $path;

the_author_posts_link css class

You can use the the_author_posts_link filter to add the custom blog-link class: /** * Add the ‘blog-link’ class to the output of the_author_posts_link() */ add_filter( ‘the_author_posts_link’, function( $link ) { return str_replace( ‘rel=”author”‘, ‘rel=”author” class=”blog-link”‘, $link ); });

Stylesheet switching and caching

I use W3TC, so these are approaches that I can come up with it for it: Fragment caching to exclude that part of page, will reduce cache effectiveness overall. Identify page with switched stylesheet by query argument, disable caching of such pages. Identify page with switched stylesheet by URL endpoint, disable caching of such by … Read more

Changing title to lowercase [closed]

Assuming this question is related to WordPress, here is answer :- You can update the titles directly into your mySQL database using simple update function. one of my user publishs all his posts uppercase (title) i want to edit them and make it normal. – Using some conditional statements as I mentioned in this code, … Read more

Using tabs for wordpress plugin

If there is problem only with html markup you should check example from official jQuery UI site here: http://jqueryui.com/tabs/ It looks like yours, but for work you must check if your site include stuff like jquery and jquery ui script, jquery css is important too. After that you should have script with: $( “#tabs” ).tabs(); … Read more