alowan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress posts different on iPhone?Ok.. thank you for the fast answer..
Might be a bit much for a site for non-tech people driving over 60 year old cars ??
Forum: Fixing WordPress
In reply to: WordPress posts different on iPhone?Hmm.. So there is no way to make it look the same?
The ff and ie looks “normal” too…
Forum: Fixing WordPress
In reply to: Styling the native galleryHmm.. Something is wrong with my filter or the way I insert it..
When I insert it I get a blank white page and has to ftp the old functions.php back..
Forum: Fixing WordPress
In reply to: limiting access to certain posts without setting a passwordPlanning to use this myself – but haven’t used it yet so can’t say if it is any good..
But it might be worth a try..
Forum: Fixing WordPress
In reply to: Custom Archive pageFound out by looking at the https://codex.www.ads-software.com/Category_Templates
Sorry for the inconvenience..
Forum: Fixing WordPress
In reply to: Custom Archive pageBasically I just want to edit the Title and breadcrums of the “gallery” category archives page: https://mgklub.byethost3.com/archives/category/galleri
Forum: Fixing WordPress
In reply to: Styling the native galleryThank you for the reply.
So if I understand this right I could add this to my functions.php:
add_filter( ‘gallery_style’ , ‘my_gallery_filter’ );
function my_gallery_filter (
<style type=’text/css’>
#{$selector} {
margin: auto;
}
#{$selector} .gallery-item {
float: {$float};
margin-top: 5px;
text-align: center;
width: {$itemwidth}%; }
#{$selector} img {
border: 1px solid #cccccc;
}
#{$selector} .gallery-caption {
margin-left: 0;
}
</style>
<!– see gallery_shortcode() in wp-includes/media.php –>
<div id=’$selector’ class=’gallery galleryid-{$id}’>”);To edit the default code to the code I want? (without having to edit core files)
Or am I misunderstading this?
Forum: Fixing WordPress
In reply to: Styling the native galleryI just found this in the media.php of the core wp files:
$output = apply_filters(‘gallery_style’, “
<style type=’text/css’>
#{$selector} {
margin: auto;
}
#{$selector} .gallery-item {
float: {$float};
margin-top: 10px;
text-align: center;
width: {$itemwidth}%; }
#{$selector} img {
border: 2px solid #cfcfcf;
}
#{$selector} .gallery-caption {
margin-left: 0;
}And if I edit this the styling works..
But is there any way to not edit the core files?
And is there any way to fix the bug with columns..?Forum: Fixing WordPress
In reply to: Styling the native galleryThe clarify a bit more:
In regard to the styling I want the css in the top of this post changed to this:
<style type=”text/css”>
#gallery-1 {
margin: auto;
}
#gallery-1 .gallery-item {
float: left;
margin-top: 0px;
text-align: center;
width: 20%; }
#gallery-1 img {
border: 1px solid #cfcfcf;
padding:2px;
}
#gallery-1 img:hover {
border: 1px solid #333333;
padding:2px;
}
#gallery-1 .gallery-caption {
margin-left: 0;
}
</style>So it fits my page..
But the code seems to be coming from the core of wp, and I can therefore not just insert this in my style.css
Forum: Fixing WordPress
In reply to: Styling the native galleryI also figured that it pulled it, the problem is that it pulls it from one of the core wordpress files and I can not figure out how to overwrite that styling.
The other issue is that in the admin panel when I select it to have 5 columns it shows me 5-2=3 columns (generally Number of columns – 2 = what it shows). I figure this is a problem in the danish wordpress – that it shows wrong numbers for the diffrent values. And I wonder how to change that.
The third issue is how to change the default column number to 5..?
The columns as it shows now (5 images pr. line – have 6 in gallery in totalt) is pretty much what I want.. Now I just want to figure out the columns issue + defeault columns, plus how to remove the wordpress core border and mouseover….
Hope that makes sence..
Forum: Fixing WordPress
In reply to: Styling the native gallerySomehow adding the
columns=”5″
to the gallery myself makes the gallery work right????
And my essential question, how do i REMOVE the default wordpress gallery css that seems to be overriding my generel css?
Edit: it seems it takes the value I entered and -2… So to get 5 columns I have to select 7..
Forum: Fixing WordPress
In reply to: Styling the native galleryI don’t think any of those works for the “gallery” function? Correct me if I am wrong..
And the columns problem seem to be a general bug? If I change it from 5 to etc. 2 it still shows 3..?
Forum: Fixing WordPress
In reply to: How do I change the main page of the site?You could edit it to a “static” page that did use of what i asked in this question: https://www.ads-software.com/support/topic/383686?replies=1#post-1463230 (how to show one comment on a static page).
There might be a smarter way though…
Forum: Fixing WordPress
In reply to: Show category on static pageRe-activated the theme, and it came up.. ??
Forum: Fixing WordPress
In reply to: Show category on static pageThank you very much..
I do not have a “template” option in the attributes – is that due to the fact that I have not made more than one yet??