jchris
Forum Replies Created
-
Forum: Plugins
In reply to: [Link Library] Link table doesn’t adapt to mobile screenYou were right, I had not tested to display the listing in a list format, only as a table. Problem solved.
Thank you very much!
@angelo_nwl
Thank you. I will look into that.
/chrisForum: Plugins
In reply to: [IdeaPush] Ide page 404 and no ideas shown on startThank you. That helped for the 404 problem.
Unfortunately it didn’t have any effect on my other problem.
I have a working idea page with the short code on it.
When visiting that page I see the head (Title, “Get your idea to 100 to be reviewed”, Filters (grayed), searchbox (grayed), a thick line and “No ideas found matching this criteria.Solution (In my case)
I found that there was a conflict with the “The SEO framework” plugin https://theseoframework.com/
After disabling that plugin everything seem to worw fine./chris
Forum: Plugins
In reply to: [Link Library] Category treeThank you. It looks great. I will try thi solution and report back.
Forum: Plugins
In reply to: [WP Glossary] Request for localized sortingThanks for the answer. I am afraid it is a bit past my capacity…
Anywhere I can read up on it?
/chris
Forum: Networking WordPress
In reply to: Move blog between multisitesThanks for the answer. Now I know and can stop wasting time ??
Forum: Networking WordPress
In reply to: wp 3.2 , new sites not workingProblem solved after Ipstenus last advice.
This is how:
The wamp server was not installed with mod_rewrite on. It turned out to be very easy to do. (Example as if wamp is running)
1: Click on the green wamp icon. (Bottom, right on the screen)
2: Click “Stop all services”.
3: Repeat step 1 when the icon has turned red.
4: Hover “Apache” and a submenu opens.
5: Hover “Apache modules” and yet a submenu opens.
6: Click on “rewrite_module” if it is not already checked.
7: Click on the wamp icon once more and chose “Start all services”.
8: Happy blogging!
If the rewrite_module alreday is checked in step 6 – Sorry, you have another problem.Thanks for your help.!
/chrisForum: Networking WordPress
In reply to: wp 3.2 , new sites not workingI don’t know if permalinks were working. I did a new install and immediately turned it into a multi site. Premalinks in default mode are now working on the MAIN site.
This is my .htaccess: (it is in the www root directory, as are index.php and the other wp files)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
</IfModule>Forum: Networking WordPress
In reply to: wp 3.2 , new sites not workingI changed back to default and that took care of the problem with the “main site”. Thanks. Deal with that later.
But I still can’t visit the other sites. I also created another one after changing permalinks back to default but there was no difference from the others.
Any ideas?
/chris
Forum: Themes and Templates
In reply to: Pass id from template to single.phpThanks for your help.
I have found the solution with the help of Derek Herman.
I will try to explain both problem and solution briefly here:I have 3 pages. On each of them I publish in several categories in different positions.
Each page i visually represented by a tab. I style the current tab by matching the menu links to the <body id> of the page shown.When the posts have a more-link I want to keep the same tab as current. The more-link uses the file single.php.
The solution is to test for the posts category and echo a suitable tag within the body-tag.
To qoute Derek:
if (in_category(13) || in_category(15)) { echo ’something’; }
I put this php code within the body-tag and the result is exactly what I wanted.
<body id="<?php if (in_category(13) || in_category(14) || in_category(15) || in_category(16) || in_category(17)) { echo ('inspiration'); } elseif (in_category(9) || in_category(10) || in_category(11)) { echo ('programinfo'); } else {echo ('news');} ?>">
My mistake: I didn’t realize that I was already within the post (and the loop). I also assumed that I only can test for category within the loop. Hence I went looking for a possibility to pass a “parent_page_id” to the body-tag in single.php.
I hope this can be of help to someone.
Forum: Themes and Templates
In reply to: Pass id from template to single.phpSorry – “bake”??? Should be “page”.
Forum: Themes and Templates
In reply to: Pass id from template to single.phpMichaelH
Thanks. But I would prefer the page id since that would take care of all categories I publish on each bake. The cleanest method for me would be to take the page id from, say index.phd, and put it in the <body id=”xxx”> in the single.php. Then all would work without any changes in styles or code.
Can you advice me on that?Forum: Themes and Templates
In reply to: How to style wp_page_menuMichaelH
YES!
Topic resolved.
Thanks again, everybody.
Forum: Themes and Templates
In reply to: How to style wp_page_menustvwlf
There is one small problem.
I have the following code (pasted from your post and added the url-part to get the link right:
<ul> <li class="home<?php if(is_front_page) echo ' current';?>"><a href="<?php bloginfo('url'); ?> ">Nyheter</a></li> <?php wp_list_pages('sort_column=menu_order&title_li='); ?> </ul> All resulting pages include the current class for the front page. I have also tried to use is_home but that did not solve the problem. Se code below:
<li class=”home current”>Nyheter
<li class=”page_item page-item-59″>Programinfo
<li class=”page_item page-item-61″>Ekonomifakta
<li class=”page_item page-item-66 current_page_item”>Inspiration`
I will handle my location styling in the stylesheet so I am fine, but if there is a solution future readers would benefit.Forum: Themes and Templates
In reply to: How to style wp_page_menuBingo!
Thank you both very much. Since I am new to both wp and PHP this really has saved me a lot of time and trial (not to speak of errors ?? It is hard to navigate with precision in new surroundings. Now it works like a breeze and I’ll be able to take it from here.
All the best!
/chris