Forum Replies Created

Viewing 15 replies - 346 through 360 (of 2,107 total)
  • Hi Carol,
    You will need to create a page of posts, using page.php as a template page and adding in a random posts loop.

    This page on my website has the same structure as you are looking for.

    The code will be theme specific and without the structure would be hard to advise, if the theme a free downloadable theme post a link?

    At least post the contents of these two files to http://pastebin.com and post the links!

    index.php
    page.php

    HTH

    David

    Not from the Admin Options, you would have to re-upload them.

    How the Headers Work:
    Header images are theme specific which in general terms works well as different themes have different header sizes.

    The header images when uploaded create an entry in the database ‘wp-posts’ table and get a unique post_ID, my header has the post_ID of 95

    Then in the ‘wp-postmeta’ table five entries are then created:

    _wp_attached_file
    _wp_attachment_context
    _wp_attachment_metadata
    _wp_attachment_is_custom_header

    The last one ‘_wp_attachment_is_custom_header’ has the theme name {slug} and is used to filter the headers.

    _wp_attachment_is_custom_header = twentyeleven-childtheme

    In theory if you have the database skills you could find the entries and edit the values.
    changing just the entries:
    _wp_attachment_is_custom_header : yoko
    to:
    _wp_attachment_is_custom_header : yoko-child

    If not then just upload the images again and they will be available for both the parent and child themes.

    The next version of WordPress will have support to assign headers from the media library.

    Maybe someone will create a little plugin!

    HTH

    David

    The Picolight theme supports custom menus, so as t-p points out just go to Admin > Appearance > Menu

    You will not be able to delete it there unless you have already created a custom menu.

    Create a new menu on the right, add menu items like pages, categories, url’s and even single posts, to indent drag the menu items to the right, save the menu.

    You will see a box on the right “Template Locations” just add your new menu to the location and save!

    HTH

    David

    Hi Bill,
    I have edited the reply above to give the child theme steps, do have a look at InstantWP and NotePad++ both free to download.

    HTH

    David

    In the twenty eleven theme function.php there is a filter to show the home menu item, copy and use this filter and it will work, I have already changed the function name and tested the code.

    I’m new to the code, and I saw code suggestions that should do this, and I tried pasting them into the functions file.

    If you are going to change the theme it would be best to create a child theme and work with that.

    Edit Start
    I see you mention notepad, have a look at a syntax highlighted editor like Notepad++ and as you are windows check out InstantWP so you can work local, test before updating a production website.

    To create a child theme for this theme, create a folder then, add a file style.css

    /*
    Theme Name: Parament Child
    Description: Child theme for the parament theme
    Author: Your name here
    Template: parament
    */
    
    @import url("../parament/style.css");

    Then create a file functions.php file starting with a php tag

    <?php
    /**
     * Parament Child themes functions.php
     * Custom functions and over-rides go in here
    */
    
    /* Show Home Link in Menu */
    function my_page_menu_args( $args ) {
    	$args['show_home'] = true;
    	return $args;
    }
    add_filter( 'wp_page_menu_args', 'my_page_menu_args' );

    Copy the screenshot.png from Parament to the child theme, make changes and activate!

    Any latout files you want to change you will then copy the file from the parent to the child, lets say changing the footer credits, copy footer.php across and make the change in the child theme.

    Back to the topic:
    To show the home link in the functions.php add:

    /* Show Home Link in Menu */
    function my_page_menu_args( $args ) {
    	$args['show_home'] = true;
    	return $args;
    }
    add_filter( 'wp_page_menu_args', 'my_page_menu_args' );

    HTH

    David

    Scenario 1:
    I think if a designer does not have the skills then they would already be working with a developer, if it is not right they can push it back to the developer, if a design element is not viable then the developer pushes it back to the designer.

    Scenario 2:
    The designer will have a range of commercial frameworks and themes with support that they can use as a base template, and will steer the client towards well supported themes, plugins and changes.

    Scenario 3:
    The designer will deliver a range of commercial themes and tweek these to the clients budget restrictions.

    Scenario 4:
    Anyone creating themes from the ground up will already have the tools to create the themes code.

    I started with the Artisteer theme generator, soon realised the code was not up to date, and now I would look for a starter theme and work from that, have a look in the Artisteer forums and there are a few wanting what you are proposing, if it was a cash cow ensoft would have already added it, as they are the “No 1” theme generator.

    A designer would want personal input from the developer, you cannot get that from a software package.

    Just my view, as I have already said if it had any commercial legs it would already have been done.

    That being said join or login to LinkedIn, search the user groups, join a few and you will get a range of answers.

    HTH

    David

    I could see just 1500 themes overall in the theme directory.

    Themes in the Themes Directory are checked to make sure the code meets WordPress standards, they must be licenced as GPL free to use alter and distribute.

    For a designer adding a free theme is only really good for the link in the footer, which can drive traffic to their website, but most people downloading free themes want “Free”

    That was the call I made with my theme, to use it as a way to give something back, a leaning curve and to get some traffic.

    There are premium websites where a designer can upload a theme for a paid download.

    There are a couple of WordPress theme generators like Artisteer, however with any software there is a big cost in development and keeping current and up with the latest API calls, deprecated functions and developments, as each new version is released.

    There could be one or two version changes a year for paid software, and the existing customers would expect a free upgrade with the latest functions supported for at least two years.

    If such sofware was viable as a business venture it would already be out there!

    Regards

    David

    It is most likely that it is code added by the themes author rather than a plugin, I say this because the authors name and share buttons are in defalt classes alignleft and alignright

    The images are also theme not plugin images:
    /wp-content/themes/bdn/images/mail.gif

    HTH

    David

    Unpack the zip file, with some commercial themes the actual theme.zip is nested a couple of levels down inside another folder with the zip, this might be where the themes author has added a PSD file, or other assets.

    /my-theme-package/
    –mytheme-psd
    –/assets/
    —/extras/
    –/my-theme/
    —my-theme.zip

    HTH

    David

    I think we had this before, custom fields are just text fields not date fields, so they will not sort how you want.

    Solution 1:
    Change the post date so the posts are in the date order you want, from the Posts > Posts > Edit

    Solution 2:
    For the custom field enter YYYYMMDD then they would be correct!

    HTH

    David

    There was a post a few weeks back with three loops and the issue was removing duplicates, maybe that code structure/solution might be of help help!

    http://pastebin.com/rCWj69c2

    Regards

    David

    Does that mean the topic is resolved?

    David

    Hi,
    I adjusted my pastebin and tested with the plugin wp-pagenavi and it worked fine.
    http://pastebin.com/RPcsx1iy

    I then downloaded and activated wp-paginate changed the template code and that also worked fine, so both work with custom type pagination and your permalink structure,

    Screenshot of pagination

    Not sure what is going on, can you pastebin the whole page code!

    David

    Just looking at your pastebin again and you are using the plugin wp_navigate, have a look in the twenty eleven theme at the functions.php and the function twentyeleven_content_nav

    It uses these variables and calls to return the output:

    global $wp_query;
    if ( $wp_query->max_num_pages > 1 ) :
       previous_posts_link()
       next_posts_link()
    endif;

    also try wp-pagenavi as I know this works with pagination as I use it on my website, so you can see it working.

    HTH

    David

    Hi,
    I have tested this with this testing twenty eleven child theme, I added the code below as a template page to display the custom post types of ‘information’ with pagination and it worked file.

    The template page code: http://pastebin.com/T257N6qW

    Note:
    My URL shows as ?page_id=61&paged=2, so yours is missing &paged=

    Changed my permalink structure /%category%/%postname%/ (/page/2/) and I do not get the same error as you!

    Pagination works fine!

    HTH

    David

Viewing 15 replies - 346 through 360 (of 2,107 total)