Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter alemao85

    (@alemao85)

    Let’s assume that I have a theme with theme options where I can choose a color.
    My main theme now shows the website with all pages an everything in this color.

    Now, when a mobile user comes I want to show a very vey simple layout. Without menu, no contact form, differente call to actions. Its a differente “theme” but I want to use the same theme options (in this case the color) from the main page.

    Of course I could create a seperate site in WP with a mobile theme and use a mobile redirect plugin. I want this all integrated in one theme only.

    Thread Starter alemao85

    (@alemao85)

    Thank you, worked perfectly!

    Thread Starter alemao85

    (@alemao85)

    in wpmu 3.5 my users had a create new site in the left sidebar like the superadmin has it.

    Thread Starter alemao85

    (@alemao85)

    Thank you, this worked!

    But I saw once that there is a way to show this “create site in the sidebar of the user login.

    Do you know how to do this?

    Thread Starter alemao85

    (@alemao85)

    That worked! Thanks a lot!!

    Thread Starter alemao85

    (@alemao85)

    Great, this link is what I needed 🙂 Thanks!

    Now it works.

    Only one problem: No it shows the blog under /blog

    Additionally I created a home and a about page and wrote some text. But the text does not appear anymore.

    Thread Starter alemao85

    (@alemao85)

    Sorry, I am a little confused.

    Let’s say I have a domain: domain.com

    And I have pages:

    domain.com/about
    domain.com/services

    Now if I go to domain.com it will load the index.php. I don’t know yet how to change the content of that page because it’s not really a page listed under “Pages”. Of course I can add content (and also the loop) to the index.php, but I dont want it on the startpage.

    Now if I go to domain.com/about or domain.com/services it will load the page.php with the content that I have created under “Pages”

    I want to have domain.com/blog where it shows The Loop.

    Thread Starter alemao85

    (@alemao85)

    Sorry, I wasn’t clear. I meant that I include header, footer and sitebar in the index.php

    <?php get_header(); ?>
    <div class="left-content">
    
    	Content
    
    </div><!-- Close left-content -->
    <div class="right-content">
    	<?php /* Widgetized sidebar */
    	    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Barra Lateral') ) : ?>
    	<?php endif; ?>
    </div><!-- Close right-content -->
    <div class="clear"></div><!-- Close clear -->
    <?php get_footer(); ?>

    That’s how it looks. The page.php looks exactly the same.

    Thread Starter alemao85

    (@alemao85)

    Hello,
    yes i read it. Thanks!

    I understand that WP looks first for a specific page template if it is set for a page.
    Then it uses page.php, and if there is no page.php it uses index.php. Thats why my index.php and page.php is the same.
    Since I have a page.php I assume that index.php wont be used so I talk about page.php now.

    My page.php contains a header, a footer and a sidebar. But the main part is empty. Now I can create a new page and write some text and ans when I preview the page I see the page.php template with the text I wrote in the main part. So far so good. I can add several pages now (about, products, …) and so on.

    Now I want to have one page where it shows the blog content. And that’s the problem that I am trying to solve here 🙂

    Thread Starter alemao85

    (@alemao85)

    Hello,
    I will stay with a single template theme. So I just copied to content from index.php to page.php and added the template stuff to the top of the page.php.

    But now I still dont want to show the Loop on all pages that I create. Only on one that I call Blog.

    Is that possible?

    Thread Starter alemao85

    (@alemao85)

    The content appears, but nothing from the blog.

    Let me ask differente…maybe I am on a wrong way here.

    So what I have:

    A index.php (and header.php and so on) and some CSS.
    Now there is no Loop in this index.php.

    I want to have several pages on my blog and they will use all the °default” page template (index.php).

    Now in one of those pages I want to show the last 10 posts for example. Thats why my idea was to copy the index.php rename it, add the loop and use it as page template for the page here I want the blog.

    Is that the right way?
    I was playing arround and added a last-post widget. There the title of the posts appear and when I click on one it opens the blog-post in my index.php template. So maybe to have a page with a loop I dont need a seperate template?

    Thread Starter alemao85

    (@alemao85)

    http://pastebin.com/hpfVMgLd

    The parts that I meand are in line 30 and 53.

    Thanks

    Thread Starter alemao85

    (@alemao85)

    I have “multipart/form-data” in my form.

    Can you tell me how I have to change this:

    echo $_FILES[‘file’][‘name’] ;

    to make it work?

    Thanks

    Thread Starter alemao85

    (@alemao85)

    I added the theme options by using this code

    function theme_options_add_page() {
    	add_theme_page('Configuração', 'Configuração', 'edit_theme_options', 'theme-optionen', 'kb_theme_options_page' );
    }

    I think, yes, that settings API.

    Thread Starter alemao85

    (@alemao85)

    hello,
    thanks for the help.
    with the link I could figgure it out 🙂

Viewing 15 replies - 1 through 15 (of 16 total)