alemao85
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Mobile and regular theme in one themeLet’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.
Forum: Themes and Templates
In reply to: get_posts with certain tagsThank you, worked perfectly!
Forum: Networking WordPress
In reply to: users can't crate new sitesin wpmu 3.5 my users had a create new site in the left sidebar like the superadmin has it.
Forum: Networking WordPress
In reply to: users can't crate new sitesThank 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?
Forum: Themes and Templates
In reply to: Loop in page templateThat worked! Thanks a lot!!
Forum: Themes and Templates
In reply to: Loop in page templateGreat, 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.
Forum: Themes and Templates
In reply to: Loop in page templateSorry, I am a little confused.
Let’s say I have a domain: domain.com
And I have pages:
domain.com/about
domain.com/servicesNow 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.
Forum: Themes and Templates
In reply to: Loop in page templateSorry, 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.
Forum: Themes and Templates
In reply to: Loop in page templateHello,
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 🙂
Forum: Themes and Templates
In reply to: Loop in page templateHello,
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?
Forum: Themes and Templates
In reply to: Loop in page templateThe 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?Forum: Themes and Templates
In reply to: Upload in theme option pageForum: Themes and Templates
In reply to: Upload in theme option pageI 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
Forum: Themes and Templates
In reply to: Upload in theme option pageI 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.
Forum: Themes and Templates
In reply to: styling a menu with css in own templatehello,
thanks for the help.
with the link I could figgure it out 🙂