x500.net
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Footer aligning differently in Safari and FirefoxYou may struggle with aligning it to center as wrapping div and each of the widgets floats to left. You’d probably need to remove the left float from all of them, then add text-align: center; to the wrapping div. make sure wrapper is set to display: block and col-12 and col-14 to display: inline-block;
Forum: Fixing WordPress
In reply to: How to create a page for testing outside WP takeoverMaybe a rewrite rule placed right after RewriteEngine On could help here?
RewriteRule ^(file_name\.extension) - [L]
Forum: Fixing WordPress
In reply to: Open Graph Madness! (FB showing wrong titles…)It doesn’t seem that you have the Yoast plugin installed anymore (which is a bloody must have cracking plugin btw.)
The title bit is in your theme/header.php file.
Look for code between <title> and </title> tags and remove | and the variable next to it.
Paste code here if you can’t work it out yourself.Forum: Fixing WordPress
In reply to: Custom Field inline with page title?You can use ACF plugin and follow the instructions in documentation.
If you don’t want a plugin, just add a custom field and display it like that:<?php $key_1_value = get_post_meta(get_the_ID(), 'key_1', true); // check if the custom field has a value if($key_1_value != '') { echo $key_1_value; } ?>
More about custom fields here
Forum: Fixing WordPress
In reply to: Index.php appears twice in URLHow about trying this custom permalink structure and leaving category and tag base empty??
/%category%/%postname%-%post_id%
Forum: Fixing WordPress
In reply to: .htaccess RewriteRuleAnd how about using WP rewrites instead of the Apache ones?
add_rewrite_rule('^gallery/([^/]*)?','index.php?page_id=9&title=$matches[1]','top');
Please note that after adding the above code to your functions.php file you need to refresh rewrite rules cache. To do this you either need to go to Dashboard -> Settings -> Permalink -> Save Changes, or add
flush_rules()
after the above code (not the best idea to keep it there as it’ll make WP regenerating rewrite rules upon every call which is a performance killer)Forum: Fixing WordPress
In reply to: Trouble Aligning Footer#footer .case { padding: 17px 20px 17px !important; overflow: hidden !important; margin-left:40%; width :100% }
<?php $childPages = get_pages(array('child_of' => 1)); ?> <ul> <?php foreach ($childPages as $childPage): ?> <li> <a href="<?php echo get_page_link( $childPage->ID ); ?>"> <?php echo get_the_post_thumbnail($childPage->ID, 'thumbnail'); ?> </a> <h1><a href="<?php echo get_page_link( $childPage->ID ); ?>"><?php echo $childPage->post_title; ?></a></h1> <?php echo $childPage->post_content; ?> </li> <?php endforeach; ?> </ul> <?php wp_reset_query(); ?>
Forum: Fixing WordPress
In reply to: Open Graph Madness! (FB showing wrong titles…)Link to the site please
Forum: Fixing WordPress
In reply to: after changes to functions.php file = server errorFor basic html editing, you can use editor provided with WordPress. Click on table icon, chose number of columns/rows, insert images in each cell and you’re good to go.
Forum: Fixing WordPress
In reply to: Pages with different PermalinkstructureDashboard -> Settings -> Permalinks -> select Custom Structure
use this: /%category%/%postname%
Click Save ChangesForum: Fixing WordPress
In reply to: after changes to functions.php file = server errorCan you just add it from wysiwyg?
Well, I wouldn’t risk a site to be hosted on a server that is not configured the right way… but the choice is yours, at least for now.
It’s simple. If they don’t know how to configure a server, don’t use their services and find new hosting provider.
Forum: Fixing WordPress
In reply to: Images DisappearedCheck .htaccess for rewrite rules, also test this code.