Support » Plugin: WP Custom Login » Need some help

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ninos

    (@ninos-ego)

    Hey there,
    you can use the provided action hooks like this:

    function wp_custom_login_header_after_replay() {
    	echo '<div class="content-block"><div class="block-content">';
    }
    add_action('wp_custom_login_header_after', 'wp_custom_login_header_after_replay');
    
    function wp_custom_login_footer_before_replay() {
    	echo '</div></div>';
    }
    add_action('wp_custom_login_footer_before', 'wp_custom_login_footer_before_replay');

    Regards,
    Ninos

    Christiaan

    (@christiaan-grob)

    Do i have to put this code in the wp-custom-login.css
    i now have uploaded the wp-custom-login.css to my public_html map with this code:

    function wp_custom_login_header_after_replay() {
    echo ‘<div class=”content-block”><div class=”block-content”>’;
    }
    add_action(‘wp_custom_login_header_after’, ‘wp_custom_login_header_after_replay’);

    function wp_custom_login_footer_before_replay() {
    echo ‘</div></div>’;
    }
    add_action(‘wp_custom_login_footer_before’, ‘wp_custom_login_footer_before_replay’);

    Nothing happens?

    Plugin Author Ninos

    (@ninos-ego)

    ähh this is php^^ You have to put it into the functions.php.
    The wp-custom-login.css is only for your custom stylesheets.

    Christiaan

    (@christiaan-grob)

    Ohhh! Sure!
    Thanks!

    Is it possible to ad an box title and that i can see the sidebar like on the home page?

    Christiaan

    (@christiaan-grob)

    This is my page template that i use for the home page.

    <?php
    /*
    Template Name: Standaard
    */

    //show header
    get_header();

    //page content
    if (have_posts()) : while (have_posts()) : the_post();
    ?>
    <div id=”image1″ overflow:hidden; left:300px; top:81px; width:474px; height:139px; z-index:0″><img src=”http://getinked.nl/wp-content/uploads/2013/08/getinkedlogomainmenu.png” alt=”” title=”” border=0 width=300 height=134<div id=”image1″ overflow:hidden; left:300px; top:81px; width:474px; height:139px; z-index:0″><img src=”http://getinked.nl/wp-content/uploads/2013/08/btw.png” alt=”” title=”” border=0 width=474 height=1<div id=”image1″ overflow:hidden; left:300px; top:81px; width:166px; height:139px; z-index:0″><img src=”http://getinked.nl/wp-content/uploads/2013/08/AD1.png” alt=”” title=”” border=0 width=166 height=139></div>

    <div class=”two-third column”>
    <?php the_content(); ?>
    </div>

    <?php endwhile; endif; ?>

    <div class=”one-third last column”>

    <?php get_sidebar(); ?>

    </div>
    <?php get_footer(); ?>

    Plugin Author Ninos

    (@ninos-ego)

    Maybe like this?

    function wp_custom_login_header_after_replay() {
    ?>
    	<div class="two-third column">
    		<div class="content-block">
    			<div class="block-title">
    				<span><?php bloginfo('name'); ?></span>
    			</div>
    			<div class="block-content">
    <?php
    }
    add_action('wp_custom_login_header_after', 'wp_custom_login_header_after_replay');
    
    function wp_custom_login_footer_before_replay() {
    ?>
    			</div>
    		</div>
    	</div>
    	<div class="one-third last column">
    		<?php get_sidebar(); ?>
    	</div>
    <?php
    }
    add_action('wp_custom_login_footer_before', 'wp_custom_login_footer_before_replay');

    PS: you should learn (x)html, css & php 😀

    Christiaan

    (@christiaan-grob)

    You right!
    Thank you for the great support!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Need some help’ is closed to new replies.