Forum Replies Created

Viewing 15 replies - 136 through 150 (of 212 total)
  • I would suggest you add a billboard on top of the forum saying ‘whatever you do, unless you have a child theme, stop doing it’, so you don’t always have to repeat yourself?

    I’m not a fan. I feel it makes it more complicated, which makes it not up to me to recommend it. I simply drop by when I’m around to reply to questions asked, because it was nice to get a reply when I needed that too. That’s all. If you don’t want me to do that, fine.

    You could add “min-width:500px” to the logo class, but you will still have white space to the left, which won’t look good.

    To resolve this you can set the margin negative to 40px.

    To make the logo part (right) visible, instead of the photo (left), you could change float to right.

    You then will have too much space left. And I’ve no idea why that is so… but I hope it helps a bit nonetheless 🙂

    I would suggest to add the header where the logo is and to do something like this with the style of the logo div.

    .container .logo {
       padding-top: 40px;
       margin-bottom: 55px;
       width: 940px;
       position: absolute;
       left: 50%;
       margin-left: -470px;
    }

    the left margin should be 50% of the image width to get it in the middle.

    1. open header.php
    2. near the bottom find “nav role=”navigation” class=”site-navigation main-navigation”…”
    3. add a php if condition.

    I think this should work, but didn’t try it:

    <?php if(!is_front_page() ) { ?>
    		<nav role="navigation" class="site-navigation main-navigation">
    			<h1 class="screen-reader-text"><?php _e( 'Menu', 'spun' ); ?></h1>
    			<div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'spun' ); ?>"><?php _e( 'Skip to content', 'spun' ); ?></a></div>
    
    			<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    		</nav><!-- .site-navigation .main-navigation -->
    	<?php } ?>

    GL!

    Note, in the second code block I refer to a site, with some code to create a login form, which you could add to that page… I wasn’t thinking about the fact that it would be posted as code 🙂

    a) (y)

    b) There are plugins that even allow you to hide parts of pages and to add a login, or a mention that “this section is only visible to…”.
    I forgot which one I tried, but it looks like you have plenty of options: http://wordpress.org/plugins/search.php?q=hide+content+logged

    In WordPress you can also hide content for unlogged users through php with this function.

    You can also add it like this:

    <?php if ( is_user_logged_in() ) { ?>
    content or menu item or anything added via php
    <?php } ?>

    So, you could basically make a new content page (template), embed the content with the php, add another block with f.ex. and show this one to the unlogged users. This is done (I think) with adding an !

    f.ex.

    <?php if (! is_user_logged_in() ) { ?>
    This content is only visible to our members. Please login or join us.
    <a href="http://www.wprecipes.com/add-a-login-form-on-your-wordpress-theme">[login]</a> -- ( I didn't test that)
    <?php } ?>

    c) I’m not a fan of child themes. In fact, I’m currently making my first and feel it is confusing. You always have to keep the code in mind that you don’t see. When making changes, you must actively undo stuff, which probably also makes the load heavier. So, I would recommend to always back up everything and not to worry about it.

    Additionally, I think an is missing in your footer. I would suggest to change this to something more like this:

    <div class="site-info">
    	<a href="http://wordpress.org/" title="Semantic Personal Publishing Platform">WordPress Powered</a> - Copyright: <?php echo date("Y"); ?> ©  <a href="<?php echo get_bloginfo( 'url' )?>" title="<?php echo get_bloginfo( 'name' )?>">Shanghailanders</a>
    </div>

    a) .site-header {
    padding: 13px 0;
    /* padding: 1.714285714rem 0; */
    }

    b) You probably can add a widget for this to the sidebar.

    c) I doubt it, but no worries, if you continue working on your site, you will keep making changes. You could make a child theme now, apply it and when you update you will see what to do. – my2ct.

    It is the title of your page. Isn’t there an option on the editor page to show or hide titles?

    If not, do you wish to hide the other titles too, f.ex. contact on your contact page?

    If yes, you can add

    .entry-title{display:none}

    to your stylesheet.

    If you would like to keep the titles, you will need to dig a little deeper in the code, or you could add the display none anyway and add titles manually, f.ex. with your heading 1 style

    <h1>title</h1>

    GL!

    To show a “more” link, add the following code to your functions.php file.

    // Replaces the excerpt “more” text by a link
    function new_excerpt_more($more) {
    global $post;
    return ‘ID) . ‘”> Read the full article…‘;
    }
    add_filter(‘excerpt_more’, ‘new_excerpt_more’);
    If you are using a Child Theme, the above code will not work without modification if the parent theme has it’s own filters setting it’s own “more” link. You will need to use the remove_filter() function to remove the parent’s filters for yours to work. The problem is your functions.php file is loaded before the parent’s functions.php, so at the time of your file’s execution, there is no filter to remove yet, and your remove_filter() code will fail without warning.

    http://codex.wordpress.org/Customizing_the_Read_More

    This is preventing it:

    #customizr-slider {
    max-width: 960px;
    margin: 0 auto;
    }

    Erasing the max-width will set the slider to 100%

    Perhaps not exactly this but to re-order I use http://wordpress.org/extend/plugins/cms-tree-page-view/

    Also look in the settings at the location of the blog. Maybe smth goes wrong there. It should be on the same page as the theme setting, but to the top.

    Hey, did you look at your theme settings?
    I think I had this ones when I removed the themes that come with wp. In the settings of the blog you create you can find the theme (smtheleven) and change it to your own…

    Just installed WP Better Emails, http://wordpress.org/extend/plugins/wp-better-emails/installation/, might be a good help and it comes with this info:

    Some dynamic tags can be included in your email template :

    %content% : will be replaced with the message content.
    NOTE: The content tag is required, WP Better Emails will be automatically desactivated if no content tag is found.
    %blog_url% : will be replaced with your blog URL.
    %home_url% : will be replaced with your home URL.
    %blog_name% : will be replaced with your blog name.
    %blog_description% : will be replaced with your blog description.
    %admin_email% : will be replaced with admin email.
    %date% : will be replaced with current date, as formatted in general options.
    %time% : will be replaced with current time, as formatted in general options.

    I think you can write USERNAME where the username should go, PASSWORD for the password, LOGINLINK to link to the login page and SITE_NAME to refer to the site, I don’t know about first name, maybe try FIRSTNAME or FIRST_NAME.

Viewing 15 replies - 136 through 150 (of 212 total)