Monday, September 29, 2014

How to remove watermark in wonderplugin slider in wordpress?



Watermark is a link which appears on the plugin as a company link. Which Can be removed only buy purchasing as said buy the publisher.

But here is a trick which could help you out a little.

Here goes the steps.



 inside sliderengine folder open amazingslider.js file with any editor and search for this 


And then search for


Line no. 300 there will a variable wpocss and infront of it there will be written 

display:block !important;

Change it to:-

display:none !important;
Also See How to remove watermark in amazing slider link is given bellow:-



4. If the above method don't work you can use the inspect element tool to get the class or id for it.

5. And edit the script by finding the code according to it.

6. I am also having the whole script with no watermark  which will be provided on request.

Saturday, September 20, 2014

Wordpress tags

Get the site sitle:-

<?php bloginfo('title'); ?>

Get the style sheet linked:-

<?php bloginfo('stylesheet_url');?>

For any other head content:-

<?php wp_head(); ?>

To get the name of the site:-

<?php bloginfo('name'); ?> 

 To get discription of the site:-

<?php bloginfo('name'); ?>

To get the navigation bar:-

<?php wp_nav_menu(); ?>

To get the header file:-

<?php get_header(); ?>

To get the footer file:-

<?php get_footer(); ?>

To get the sidebar:-

<?php get_sidebar(); ?>

To get the Posts:-

<?php while(have_posts()) : the_post(); ?>
       <?php the_title(); ?>/* To get the title of the post */
       <?php the_content(); ?>/* To get the conent of the post */
<?php endwhile; ?>

To get the image:-

Paste the code where u want to show the image:-
 
<?php the_post_thumbnail('full'); ?>

Paste the code to active an feature image in Functions.php file:-

<?php add_theme_support('post-thumbnails'); ?>

To get the author link:-

<?php the_author_posts_link(); ?>

To get the date:-

<?php the_time('F jS, Y'); ?>

For comments:-

<?php comments_link();?>/*Gives an link to comment page.*/

<?php comments_number('0 comment','1 comment','% responses'); ?>
/*
 0 comment : used for no comment.
1 comment : used for 1 comment.
% responses : used for More than 1 coments */

To link a text to dynamic permalink:-

<?php the_permalink(); ?>

To get the comment box:-

<?php comments_template(); ?>


Wednesday, September 17, 2014

Adding a WowSlider Slideshow to your Widget Area

You’ll need to install a plug-in that allows you to write PHP in a text widget.

I used PHP Code Widget

And you can simply add the shortcode in this format:

<?php wowslider(21); ?>


The no 21 will be different for your slider.

Tuesday, September 16, 2014

How to add content in widget area?

To add content into your widget area just use the plugin link below:

https://wordpress.org/plugins/content-widget/

How to limit the no of posts in wordpress?

The below code would help you to limit the no of posts:-

<?php
$page_num = $paged;
if ($pagenum='') $pagenum =1;
query_posts('showposts=4&paged='.$page_num); ?>
<?php if ( have_posts() ) : ?>

            <?php /* Start the Loop */ ?>
            <?php while ( have_posts() ) : the_post(); ?>
               
                <?php //the_title();
                ?><div id="read">
                <?php the_content();//get_template_part( 'content', get_post_format() ); ?>
            </div><?php endwhile; ?>

            <?php //twentytwelve_content_nav( 'nav-below' ); ?>

        <?php endif; ?>

How to get the content in an coustom page template?

 
Add the below code in your custom template page:- 
 
 
<?php
/*
Template Name: Archives with Content
*/

get_header(); ?>
<div id="content" class="widecolumn">
    <?php if (have_posts()) : while (have_posts()) : the_post();?>
    <div class="post">
        <h2 id="post-<?php the_ID(); ?>"><?php the_title();?></h2>
        <div class="entrytext">
            <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
        </div>
    </div>
    <?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
<div id="main">
    <?php get_search_form(); ?>
    <h2>Archives by Month:</h2>
    <ul>
        <?php wp_get_archives('type=monthly'); ?>
    </ul>   
    <h2>Archives by Subject:</h2>
    <ul>
        <?php wp_list_categories(); ?>
    </ul>
</div>
<?php get_footer(); ?>

Creating a WordPress Theme from Static HTML: Adding Navigation

To complete this tutorial, you will need the following:
  • your code editor of choice
  • a browser for testing your work
  • a WordPress installation, either local or remote
  • If you're working locally, you'll need MAMP, WAMP or LAMP to enable WordPress to run.
  • If you're working remotely, you'll need FTP access to your site plus an administrator account in your WordPress installation.

To register a navigation menu, you use the register_nav_menu() function, which you will need to add to your theme's functions.php file.
As your theme doesn't have this file yet, you start by creating one.
In your theme folder, create a new blank file called functions.php.
Open the new file and add the following to it:
1
2
3
4
5
6
<?php
function wptutsplus_register_theme_menu() {
    register_nav_menu( 'primary', 'Main Navigation Menu' );
}
add_action( 'init', 'wptutsplus_register_theme_menu' );
?>
You've just created your theme's first function, pat yourself on the back!


You'll now have access to the 'Menus' dashboard screen, which wasn't available before as your theme didn't have a menu registered. Right now, its contents aren't perfect but we'll soon change that.


Right now, this menu still won't be visible on your website; you need to add the menu to your header file to make this happen.

Add the code below to header.php:-

<nav class="menu main">
    <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    <div class="skip-link screen-reader-text">
        <a title="Skip to content" href="#content">Skip to content</a>
    </div>
    <?php wp_nav_menu( array( 'container_class' => 'main-nav', 'theme_location' => 'primary' ) ); ?>
</nav><!-- .main -->