Docy

Did You Know?

Elements

Source Code

Welcome to Docy!Get familiar with the Docy products and explore their features,guides,tips and tools.

HTML Code Blocks

From a group of elements with one parent. Same as first one,but use this method if you are creating a popup from a list of elements in one container. Note that this method does not enable gallery mode,it just reduces the number of click event handlers;each item will be opened as a single popup. If you wish to enable gallery,add the gallery:{enabled:true}option.

For example,<code><section></code>should be wrapped as inline.
<p>Highlighttext with HTML <mark>tag <p>
<ul class="list-unstyled f_social_icon"><li><a href="#"><i class="social_facebook"><i><a><li><li><a href="#"><i class="social_twitter"><i><a><li><li><a href="#"><i class="social_vimeo"><i><a><li><li><a href="#"><i class="social_linkedin"><i><a><li><ul>

CSS Source Code

html{height:100%}a{text-decoration:none;transition:all .3s ease-in-out}a:hover,a:focus{text-decoration:none;outline:0;color:#10b3d6}body{line-height:24px;font-size:16px;height:100%;font-family:"Roboto",sans-serif;font-weight:400;color:#6b707f}

JavaScript Code

$(".img_popup").each(function(){$(".img_popup").magnificPopup({type:'image',closeOnContentClick:true,closeBtnInside:false,fixedContentPos:true,removalDelay:300,mainClass:'mfp-no-margins mfp-with-zoom',image:{enabled:true,navigateByImgClick:true,preload:[0,1]}})}) 

PHP Source Code

function docy_setup(){load_theme_textdomain('docy',get_template_directory() . '/languages');// Add default posts and comments RSS feed links to head. add_theme_support('automatic-feed-links');// Enable excerpt support for page add_post_type_support('page','excerpt');// Enable WooCommerce Support add_theme_support('woocommerce');add_theme_support('title-tag');add_theme_support('post-thumbnails');add_theme_support('post-formats',array('audio','video','quote','link'));// This theme uses wp_nav_menu() in one location. register_nav_menus(array('main_menu' =>esc_html__('Main menu','docy'),'overlay_menu' =>esc_html__('Overlay menu','docy'),))}add_action('after_setup_theme','docy_setup');

3 Comment

  • Issac Wise

    July 3,2020 at 2:14 pm

    Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings,unless that’s explicitly desired.

    Reply
    • Hans Down

      44 mins ago

      Thenks Demo User for Wouldn’t it be better practice to use get_the_title.

      Reply
    • Hans Down

      44 mins ago

      Dropped a clanger up the kyver easy peasy vagabond victoria sponge Charles tinkety tonk old fruit argy.!

      Reply
  • Chauffina Carr

    04 mins ago

    Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings,unless that’s explicitly desired.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

CONTENTS