CharlesClarkson
Forum Replies Created
-
Try uninstalling Better WP Security plugin and deleting its files. Then install it again.
Forum: Fixing WordPress
In reply to: PHP codeShow us the code before and after the widget changes it and tell us which widget you are using.
Your post title (
PHP code
) would suggest you have PHP code in the code sent to you. So, you need to use a widget that can run PHP code. A Text widget, for example, will not run PHP code. There are several plugins which provide widgets that run PHP code.Forum: Fixing WordPress
In reply to: Import Feature Not Importing All PostsYou may be running out of memory.
Try turning on debug to see if there are any new error messages while importing.
Forum: Fixing WordPress
In reply to: send email response to two personSetup a new email address on your web server that forwards email to the email addresses you want. Now use that new email address as the WordPress admin email address. You can add or remove addresses any time you want without changing WordPress or digging into PHP code.
Forum: Fixing WordPress
In reply to: Help with showing content from WP posts in my custom sitePlease add a link to your web site, so we can see what you are talking about.
Forum: Fixing WordPress
In reply to: Cannot modify the text contentChances are that you are looking at a cached copy of the page from before the update.
Temporarily turn off W3 Total Cache while updating the site or rebuild the cache after you update. Also disable your browser cache.
Forum: Fixing WordPress
In reply to: Margins, padding or content area issue?Try this in the style sheet:
article.page { padding: 0 10px; }
That should add 10 pixels to the the left and right of the article on only pages.
To isolate only the home page use:
body.home article { padding: 0 10px; }
Forum: Fixing WordPress
In reply to: All my internal links are in "nofollow" mode…!?Looking at the page source for https://www.epictures.fr/portfolio, there are no links marked
rel="nofollow"
and no meta tag:<meta name="robots" content="nofollow" />
.Your robots file: (https://www.epictures.fr/robots.txt) isn’t restricting any pages. The Portfolio page is not on your site map (https://www.epictures.fr/sitemap.xml), but that should not affect the links on the page.
I don’t know why the plugin is listing these links as nofollow, but they do not seem to be marked that way on the page.
Forum: Fixing WordPress
In reply to: Same sidebar with different width depending on pageCSS doesn’t use equal signs (
=
):.single #sidebar { width: 50px; }
Forum: Fixing WordPress
In reply to: Have Different Page Every DayUse something like this:
$args = array( 'posts_per_page' => 1, ); $day_of_week = strtolower( date( 'l' ) ); switch ( $day_of_week ) { case 'monday' : $args['cat'] = 1; break; case 'tuesday' : $args['cat'] = 2; break; case 'wednesday' : $args['cat'] = 3; break; case 'thursday' : $args['cat'] = 4; break; case 'friday' : $args['cat'] = 5; break; case 'saturday' : $args['cat'] = 6; break; case 'sunday' : $args['cat'] = 7; break; } $posts = new WP_Query( $args ); if ( $posts->have_posts() ) { while ( $posts->have_posts() ) { $posts->the_post(); printf( '<div class="entry-title"><a href="%s"><h2>%s</h2></a></div>', get_permalink(), get_the_title() ); printf( '<div class="%s"><p>%s</p></div>', join( ' ', get_post_class() ), apply_filters( 'the_content', get_the_content() ) ); } } wp_reset_postdata();
I used category IDs to select different posts categories. You would have to replace the category IDs with your own category IDs.
Forum: Fixing WordPress
In reply to: Side bar widgets show up bellow postsThe page looks fine to me in Firefox. I see 3 columns: content, sidebar-primary and sidebar-secondary.
Forum: Fixing WordPress
In reply to: Pages not showing contentYou may have PHP syntax errors in one or more theme files. Read the Debugging in WordPress page to show errors on your web page.
Forum: Fixing WordPress
In reply to: Can't find individual page code – NOT theme codeOptimizePress is a premium theme. We cannot see the theme files.
They have their own support page. Have you opened a ticket with them?
Forum: Fixing WordPress
In reply to: Can't find individual page code – NOT theme codeWithout seeing your web site and without knowing which theme you are using, it is extremely difficult to figure out which file(s) you need to edit.
Provide a link to your web site for a page with the form on it and provide the theme name and a link to the theme you are using for your web site.
Forum: Fixing WordPress
In reply to: Same sidebar with different width depending on pageIf your theme uses the
body_class()
function to add classes to the<body>
tag then each page has a unique body class for that page. You can use a CSS selector that identifies the page.For example, on my web site, the home page has this <
body>
tag:<body class="home blog logged-in admin-bar no-customize-support custom-background header-full-width full-width-content">
The
home
class is unique to the home page of the web site. No other page has ahome
class in the body tag.So, any CSS selector that begins with
body.home
will only affect the home page.