Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter jansmith

    (@jansmith)

    I began adding my plugins back in, one at a time.

    When I got to “nextgen-gallery”, as soon as I activated it, my site blew up again.

    I’m not sure if it’s their plugin, or perhaps I have deuling javascripts in my site.<s>

    At least the site is back up.

    Any ideas on how to resolve this issue?

    Thanks again for your help.

    Jan

    Thread Starter jansmith

    (@jansmith)

    Thanks for your reply, Tara.

    I can’t find a folder named mu-plugins.

    I have a folder named “plugins” under the wp-content folder. I renamed that folder to “plugins-old”, and now my site is back up.

    Now I’m going to try to figure out how to get the plugins back without breaking my site again.

    I just made a new empty “plugins” folder. I will try adding back in the active plugins I was using one-by-one and see what happens.

    Thanks for your help. I would never have thought of the plugins as being a factor in this problem.

    jan

    Thread Starter jansmith

    (@jansmith)

    Jeremy,

    Thanks for your prompt reply!

    I have put the following at the bottom of my css:

    @media print {
    /* All your print styles go here */
    #header, #footer, #comments, #sidebar, #nav { display: none !important; }
    #content { display:block ;
    margin-left:0;
    float:none;
    width:auto;
    }
    }

    Still, when I use the sharedaddy print button, I get the entire page.

    How does the plugin know to find/use my css?

    Thanks,

    jan

    Thread Starter jansmith

    (@jansmith)

    Hmmm… actually, the problem is not just that CleanPrint ignores CSS; it also ignores styles embedded in the text.

    I have tags such as:

    ‘<h2>’ – should use a heading font, but doesn’t.
    “strong” – should make text bold, but doesn’t. (using < > causes error; sorry)
    ‘<span style=”color: #ff0000;”>’ – should cause text to be red, but doesn’t.

    Is there a setting somewhere that I’m missing??

    Otherwise, what’s the point? Before I tried CleanPrint, I copied a post from my blog, pasted it into MS Word, and all the formatting arrived intact!

    http://www.wordblessings.com

    I’m not sure if this is a WordPress feature or a feature of the theme I’m using (Thesis).

    When editing a page, there is a section headed “SEO details and additional style. Within that section is a place to enter a class name. I created a class in my CSS named no_print.

    In my CSS, I have the following:

    .no_print .cleanprint-exclude { display:none; }

    Hope this helps!
    ~jan

    Thread Starter jansmith

    (@jansmith)

    alieneila,
    Thanks for your reply.
    I am using WordPress 3.4.2., and I have searched all PHP files for the Get_post function, including wp-includes/post.php. It isn’t in my version.

    Setting that to one side, perhaps if I gave more details, you could suggest a solution.

    I am using a theme called “Thesis”, which provides numerous “hooks” in which one may insert custom code. One of these hooks is labeled “these_hook_before_sidebar_1”. It contains the following code:]

    <?php
    if (is_single())  {
    ?>
    <div class="columntext" id="c4">
    	<ul class="columnlinks">
    
    <li><a>')">Printer-friendly page</a></li>
    </div>
    <?php } ?>

    [please mark all posted codes using the ‘code’ button – http://pastebin.com/ – the above section is already corrupted by the forum parser]

    (Elesewhere, there is logic that determines when this particular code runs. I use a plugin called “widget logic” for that.)

    This runs fine. A window appears, and it runs a file named “2printer.php, which is in a separate “include” directory (not in the WP directories.)

    Here is the contents of that PHP file. I have hard-coded an ID number, trying to get it to load the contents.

    But all I get is an error saying that the function “Get_post” cannot be found. I was hoping that if I “included” the PHP file containing that function, it would “find” the function and run it. Here’s my code:

    **********************************************************************
    <link rel="stylesheet" href="<?php echo $_SERVER['DOCUMENT_ROOT']?>/wordpress/wp-content/themes/thesis_18/custom/custom.css" type="text/css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    
    <?php
    	$my_id = 1689;
    	$post_id_1689 = get_post($my_id);
    	$contents = $post_id_1689->post_content;
    	echo $contents;exit;
    
    </div>";
    ?>
    </body>
    </html>
    *********************************************************************

    As I say, when I run this, I get a window with an error message.

    All I want is a window with the contents of whatever post is being displayed in the “parent” window.

    I’m open to suggestions.

    Thanks ~ jan

    Thread Starter jansmith

    (@jansmith)

    Ah, I see… kind of shot myself in the foot, didn’t I…

    So I removed that styling for the .headline_area, and the titles came back… everywhere…<s>

    I’d still like to suppress the title on some static pages. For example, my “Welcome” page and my “Store” page and associated child pages. I added a CSS class name “no_title” to some of the pages.

    Then, in my Custom.css, I added the following:

    .no_title .headline_area { display:none; }

    That works; it suppresses the title on pages where I added the class name, but yet displays the titles for blog-related pages.

    Looks like I’ll have to add that class to all “pages”, unless there is a more efficient way.

    Thanks so much for pointing me to the solution. I wouldn’t have thought of something in the CSS as the culprit.

    jan

    Thread Starter jansmith

    (@jansmith)

    Further testing revealed that it’s not just a Widget Logic issue.

    The theme I’m using (Thesis) provides “hooks” for custom code to be run at various points. One such hook is before the sidebar.

    When I insert just my html code in there, it executes and puts adds the desired item at the top of the sidebar — for every page.

    But then, if I wrap it in the appropriate PHP tags and run it… nothing happens. Once again, I have nothing but the default widget on my blog page.

    For some reason, I cannot seem to add a widget to the sidebar of a page designated as the post (blog) page.

    Has anyone else experienced this? Got any ideas how to make it work properly?

    jan

    My blog page is: wordblessings.com/blog

Viewing 8 replies - 1 through 8 (of 8 total)