square_eyes
Forum Replies Created
-
Forum: Plugins
In reply to: [NGS SAM Integrator] So how do I get the pages up? (What are the shortcodes)I thought I’d answer my own question.
The first time the settings are saved in this plugin it creates (and immediately publishes) two pages. This format depends on your site permalink structure. As the doco says, although a little confusing, you can set the page IDs during the initial setup, and access the pages via those IDs if you know how to do that. Although I’d recommend leaving the page IDs blank on initial setup so that new ones are created for you.
-
https://www.yoursite.com/requests (populates with shortcode [samplaylist])
https://www.yoursite.com/top-requests (populates with shortcode [samtoprequests])Not really sure about this unconventional page creation method. May as well just supply the shortcodes. Then people can design their own pages before publishing them. I must say this appears to be an otherwise well developed and documented app.
Lots of feature requests coming your way! Keep up the good work.
Forum: Plugins
In reply to: [Revision Control] Bulk deleting old revisionsYeah I can’t understand. All my posts and pages say they are now limiting to 10 (which is what I set in the defaults). But every post/page has over 100 revisions.
Isn’t this the point of the plugin? If I wanted to delete them manually I wouldn’t have needed a plugin in the first place.
Forum: Fixing WordPress
In reply to: how to add css for custom page templateThanks for the links. I have read them and comprehend the concept now. I guess I fall short in the execution. As there are no examples of custom css for page templates (only categories) I used alchymyth’s suggestion of bracketing the blanket page body example with an if statement.
I put the below at the bottom of my functions.php file…
if (is_page_template('pageshow.php')) { // Returns true when 'pageshow.php' is being used. function my_class_names($classes) { // add 'class-name' to the $classes array $classes[] = 'pageshowclass'; return $classes; // return the $classes array } // Now add pageshowclass class to the filter add_filter('body_class', 'my_class_names'); } else { // Returns false when 'about.php' is not being used. }
And the below in my stylesheet…
/* Custom Page Styling by ID */ .pageshowclass h1.entry-title { text-align: center; }
But the class is not applied, nor is the css.
Forum: Fixing WordPress
In reply to: how to add css for custom page templateIt doesn’t help me unfortunately. I’m trying to process it, but it’s still seems vague to me. Thanks for the link though. I’ll keep trying.
Forum: Themes and Templates
In reply to: how to add css for custom page templateBut then I would be accused of a duplice post? I don’t see how posting a new question which directly relates to getting clarification from an answer in this question benefits anyone.
Forum: Themes and Templates
In reply to: how to add css for custom page templateJustin, thanks for the advice, I’m trying to add the body_class_filter. Unfortunately the codex is incomplete. From the example on that page, where does the code go? If I were to take a wild guess I’d put the below in the page template.
// Apply filter add_filter('body_class', 'multisite_body_classes');
And the following in the themes function file?
function multisite_body_classes($classes) { $id = get_current_blog_id(); $slug = strtolower(str_replace(' ', '-', trim(get_bloginfo('name')))); $classes[] = $slug; $classes[] = 'site-id-'.$id; return $classes; }
Am I correct?
Then do I still add some custom css in my main css file?
Forum: Themes and Templates
In reply to: [twenty-eleven] is it possible to center specific page titles?Spoke too soon. I found this over at Stack Overflow.
Here is what I used:
/* Custom Page h1 Styling by ID */ .page-id-50 h1.entry-title, .page-id-51 h1.entry-title { text-align: center; }
I only listed two in this example but I assume there is no limit.
Forum: Themes and Templates
In reply to: [twenty-eleven] is it possible to center specific page titles?This was really helpful thanks. Can you tell me if there is an easier way than to list each page separately?
Say in the same css class statement, having a list of page IDs?
Sorry I’m new to CSS.
Forum: Reviews
In reply to: [IceStats] Great plugin!Great! Could you please share it?
Forum: Fixing WordPress
In reply to: Pad out page content if it is below a certain height in pixelsFair enough. OK thanks.
Forum: Fixing WordPress
In reply to: Pad out page content if it is below a certain height in pixelsI’m not complaining about that, just graciously showing that I have been looking to solutions already discussed so I don’t stir up the forum Nazis. It’s not working;)
Forum: Fixing WordPress
In reply to: Pad out page content if it is below a certain height in pixelsClever this Google thing. I’ll make sure I bookmark it.
Disabling cache worked for me.
Disabling cache worked for me.
My Piwik install seems to work too. Yet I get the below error.
An error occured: Please check URL and auth token. You need at least view access to one site.