Search This Blog

Wednesday, March 20, 2019

create custom post wordpress

follow the below link and its step to make the custom post menu and custom post feature.

https://www.codexworld.com/wordpress-custom-post-types-without-plugin/


display dropdown menu on wordpress pages dynamic code

<?php wp_nav_menu( array(
'menu'           => 'menu-name', // Do not fall back to first non-empty menu.
'theme_location' => '__no_such_location',
'fallback_cb'    => false // Do not fall back to wp_page_menu()
) ); ?>

Saturday, December 1, 2012

Dynamic sidebar widget in php page in wordpress Best working Code

Get Dynamic Sidebar widget in wordpress best working code

<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(4) ) : ?>
<?php endif; ?>

For more information checkout our official website. http://www.shreejiinfotek.com/

Saturday, November 10, 2012

Wordpress Blog Uncategorized Post Display Only

<?php if ( have_posts() ) : ?>

                <?php twentyeleven_content_nav( 'nav-above' ); ?>

                <?php /* Start the Loop */ ?>
<?php
global $post;
$args = array( 'numberposts' => 1000, 'offset'=> 0, 'category_name'=> 'Uncategorized, blog' );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :    setup_postdata($post); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endforeach; ?>

                   

                <?php twentyeleven_content_nav( 'nav-below' ); ?>

            <?php else : ?>

Monday, November 5, 2012

Javascript for onover image and content change best working

<script type="text/javascript">
function inlarge_image(img)

{
    document.getElementById('text_1').style.display='none';
    document.getElementById('text_2').style.display='none';
    document.getElementById('text_3').style.display='none';
    document.getElementById('text_4').style.display='none';
    document.getElementById('text_5').style.display='none';
    document.getElementById('text_6').style.display='none';
    document.getElementById('large_image').src='images/big_image'+img+'.png';
    document.getElementById('text_'+img).style.display='block';
   

}
</script>

</head>

<body>

<div align="center"><img src="images/big_image1.png" id="large_image" alt="image" border="0" /></div>
<div id="text_1">
    Der Superw├Ąchter
</div>
    <a href="#"><img src="images/image.png" onmouseover="inlarge_image(1);" alt="image" border="0" /></a>
</body>
</html>

Google Language Translator best working

change your website in any language without any promotion like goole or any tab above your website. This is just an example you need to convert your website code from your own google account and use only css of my code.


<div style="position: fixed; right: 10px; top: 50px;">

<style>
body    { top:0px !important;}
.goog-te-banner    { display: none !important;}
.goog-te-combo, .goog-te-banner *, .goog-te-ftab *, .goog-te-menu *, .goog-te-menu2 *, .goog-te-balloon * { display: none !important;}
.goog-te-banner-frame    {display: none !important;}
.goog-te-gadget img    { display: none;}
.goog-te-gadget-simple a.goog-te-menu-value span:nth-child(1) { padding: 0 10px 0 0px;}
</style>
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
       
</div> 


For more information checkout our official website. http://www.shreejiinfotek.com/

Friday, October 12, 2012

Best Working You tube Video

 You can remove all the play and pause buttons as well as hide the you tube links on video... best working...

<iframe width="430" height="322" src="http://www.youtube.com/embed/wP_CDWFi4pg?modestbranding=1&rel=0&autoplay=1&controls=0" frameborder="0" allowfullscreen></iframe>

For more information checkout our official website.