Skip to main content

Home/ Wordpress/ Group items tagged snippet

Rss Feed Group items tagged

Elías Gómez

Allow SVG through WordPress Media Uploader | CSS-Tricks - 0 views

  •  
    function cc_mime_types($mimes) {
    $mimes['svg'] = 'image/svg+xml';
    return $mimes;
    }
    add_filter('upload_mimes', 'cc_mime_types');
  •  
    function cc_mime_types($mimes) {
    $mimes['svg'] = 'image/svg+xml';
    return $mimes;
    }
    add_filter('upload_mimes', 'cc_mime_types');
anonymous

How Are WordPress Plug-ins Helpful? - 0 views

  •  
    Plug-in is small snippets of code allowing you to add extra functionality to your site! Like, if you want to get idea of the statistics of your site, WordPress.com stats plug-in can help, which helps you measure your number of page view matrix and it can also help you know where your traffic is coming from.
Luciano Ferrer

WordPress › WP Product Review « WordPress Plugins - 0 views

  •  
    "The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews with ratings, pr Easily turn your basic posts into in-depth reviews with ratings, pros and cons and affiliate links . This plugin helps you to interact with your users with improved comments, you can expose your reviews in a easier to read way and will help you generate money by adding a buy now button in your post."
Luciano Ferrer

How to Add Items to the WordPress Toolbar - WPMU DEV - 1 views

  •  
    "In this article, we'll look at how you can add your own custom links to the bar with code so you can quickly access parts of the front and backend of your site with ease. This will be a simple enough task, all we need is one function: add_node(). I recommend taking a look at what the Codex has to say about it, I'll show you the basics using a couple of examples."
Vernon Fowler

Conditional Tags « WordPress Codex - 0 views

  • The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches. For example, you might want to display a snippet of text above the series of posts, but only on the main page of your blog. With the is_home() Conditional Tag, that task is made easy.
  • is_single()  When any single Post (or attachment, or custom Post Type) page is being displayed. (False for Pages)
  •  
    Great for use with the Widget Logic plugin. A reference for all the conditional tags that help you restrict a widgets viewing.
  •  
    Warning: You can only use conditional query tags on or after the init action hook in WordPress. For themes, this means the conditional tag will never work properly if you are using it in the body of functions.php, i.e. outside of a function.
Anna Johansson

Add page/post slug class to menu item classes | WPreso - 0 views

  •  

    function add_slug_class_to_menu_item($output){
    $ps = get_option('permalink_structure');
    if(!empty($ps)){
    $idstr = preg_match_all('/
    foreach($matches[1] as $mid){
Anna Johansson

Overriding WordPress Functions | venutip.com - 0 views

‹ Previous 21 - 40 of 49 Next ›
Showing 20 items per page