Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • No worries 🙂

    In order to fix that, you have to edit your theme’s category.php file. If there’s no such file, then you have to edit archive.php or index.php if there also isn’t archive.php one.

    Find the following (or something similar to it):

    while ( have_posts() ) : the_post();

    and just before that line add the following piece:

    global $wp_query;
    $custom_args = array(
    	'post_type' => array( 'post', 'your-custom-post-type' )
    );
    query_posts( array_merge( $wp_query->query_vars, $custom_args ) );

    Hope that helps,
    Niki

    Forum: Themes and Templates
    In reply to: Sidebar Width

    No problem at all.

    If you take a look to your main template, you will notice there are two main divs, one for your sidebar, and one for the main content:

    <div class="container">
    	<div class="two columns">
    		<div class="sidebar">...</div>
    	</div>
    	<div class="fourteen columns">
    		...
    	</div>
    </div>

    The Skeleton CSS framework is setting 120px width for the “two columns” div. The code I gave you simply expanded the sidebar div, which is inside of that one.

    Another way you can do that is by changing the numbers to (for example) “four columns” and “twelve columns”. Then you have to decrease the left margin of the “all-posts-box” child element.

    You may also want to check how your site looks on lower resolutions and make some changes via media queries where that is needed.

    Cheers

    Hey,

    No worries.

    As for #1, I misunderstood your question at first, so your confusion is actually my fault 🙂 Yes, you can do that, it’s not a bad idea, neither bad practice.

    Best,
    Niki

    Forum: Themes and Templates
    In reply to: Sidebar Width

    Adding this at the bottom of your CSS file should do the trick:

    .sidebar, .sidebar .newd.columns { width: 270px; }
    .sidebar input#s { width: 260px; }

    Niki

    This plugin may help, although I didn’t tested it. Another way you can do that is via SQL query.

    Probably he is using proxy which filters cookies, or there is another thing blocking the WP test cookie.

    This is the easiest way to fix that issue that I can come up with. I believe it will do until the core developers find a way to improve that piece.

    No worries. There is another way to fix this, however it’s a core hack, so you may need to redo it again upon next update.

    Open your wp-login.php file and remove/comment the following piece of code. It should be somewhere around line 743:

    // If cookies are disabled we can't log in even with a valid user+pass
    if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
    	$user = new WP_Error('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));
    else
    	$user = wp_signon('', $secure_cookie);

    Hey Dan,

    1. You have to create custom taxonomy (in other words custom categories) for your post type. CPT cannot be assigned to default taxonomy such as post categories.

    2. If for example your CTP is called “portfolio”, then you have to create a “archive-portfolio.php” file into your theme directory. Just copy the source from the default archive.php/index.php file and make the changes you have in mind.

    3. In my experience, it all depends of how popular your site is. The main problem with the pretty permalinks is that they make your website slower. If you don’t have big traffic you normally won’t need to worry about that. However, you should be able at least to add an ID to your permalinks.

    4. Yep, http://example.com/feed/?post_type=cpt-name

    Niki

    Try adding the following code to your wp-config.php file:

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

    Then delete all cookies from your website and try to login again.

    Niki

Viewing 10 replies - 1 through 10 (of 10 total)