Community Forums › Forums › Retired StudioPress Themes › Making Author Pro front page full width without a plugin?
Tagged: E Shram Card
- This topic has 5 replies, 4 voices, and was last updated 1 week, 4 days ago by
brycejune.
-
AuthorPosts
-
January 17, 2023 at 5:58 am #506593
AS7
ParticipantHello everyone!
I'm using WordPress with the Genesis Author Pro theme, but I suppose my question could apply to other themes.
I'd like my front page content to be full-width, so literally extending from the left side to the right side of the screen, with no "margins". However, with Author Pro, you have this "box" that encompasses the front page content no matter what.
Now I've solved this so far by using the Genesis Dambuster plugin. I check "Full width page" and "Enable Dambuster on the front page" and that works like a charm. Yet it seems that Dambuster is no longer maintained, so I worry this may be a security risk or a source of issues down the line.
My question is this: does anyone know how to modify the php/CSS of the Author Pro theme to achieve the same front page full-width effect without needing a plugin?
If you could publish your step-by-step guide for doing so, I'd be very grateful 🙂
AS7
April 1, 2023 at 6:02 am #507119Mikcrjgf
ParticipantModifying the PHP/CSS of a WordPress theme can be a complex task, and it's important to take precautions to ensure that your modifications don't break your website or cause security issues. It's always a good idea to make a backup of your website before making any modifications to your theme or code.
Here are the general steps you can follow to modify the Author Pro theme to achieve a full-width front page without using a plugin:
Create a child theme: It's important to modify WordPress themes using a child theme, so that your changes will not be overwritten when the parent theme is updated. You can create a child theme by following the instructions on the WordPress Codex.
Modify the PHP template for the front page: In your child theme, create a new file called "front-page.php" and copy the contents of the original "front-page.php" file from the parent theme. Then, modify the file to remove any elements that are causing the content to be constrained within a box. This may involve removing or modifying elements such as divs or containers that are limiting the width of the content.
Modify the CSS for the front page: In your child theme, create a new file called "style.css" and copy the contents of the original "style.css" file from the parent theme. Then, modify the file to remove any styles that are constraining the width of the front page content. This may involve modifying or removing styles for elements such as containers, padding, or margins E Shram Card | e Shram card registration | E shram card download
.Test your changes: After making modifications to your child theme, it's important to test your changes thoroughly to ensure that they work correctly and do not cause any issues. Test your changes on different devices and browsers to ensure that your full-width front page looks good and functions correctly for all users.
Keep in mind that modifying the PHP/CSS of a WordPress theme can be complex and may require some technical knowledge. If you're not comfortable making these modifications yourself, you may want to consider hiring a professional WordPress developer to assist you.
April 9, 2023 at 8:08 am #507212AS7
ParticipantHello Mikcrjgf,
Thank you for your assistance! It looks like a plan, I'll try your method (when I'm able to take some time for all this tinkering 😀) and if I find the solution I may post it here to help other users.
Cheers,
AS7
April 9, 2023 at 11:18 am #507213justinbenz451
ParticipantHello! It's great to hear that you have found a solution to make your front page full-width using the Genesis Dambuster plugin. If you want to modify the PHP/CSS of the Author Pro theme to achieve the same effect, you may need to consult the theme's documentation or reach out to the theme's support team for guidance on how to Download this. Alternatively, you can try searching for tutorials or resources online that can help you modify the code yourself. Just be sure to backup your site before making any changes. Good luck!
May 14, 2023 at 4:26 am #507403AS7
ParticipantThank you justinbenz45, just saw your reply. I'll keep you posted (when I get to it!) 🙂
May 19, 2023 at 9:40 am #507436brycejune
ParticipantHi,
Hope so you're doing good, work on below points and will definitely work for you:
Create a child theme: It's important to create a child theme before making any modifications to the theme files. This way, your changes won't be overwritten when the theme is updated.Locate the front page template file: In your child theme, find the front page template file. It is usually named something like front-page.php or home.php.
Edit the template file: Open the front page template file in a code editor and look for the main content section. It might be enclosed within a <div> or a <section> tag.
Remove any container or wrapper div: If there is a container or wrapper <div> around the main content section, remove it. This will allow the content to extend from the left to the right side of the screen.
Adjust CSS styles: If necessary, you may need to adjust the CSS styles to ensure the full-width effect is applied correctly. Look for any CSS classes or IDs related to the main content section and modify their width properties to 100%.
Save and upload changes: Save the modified template file and upload it to your child theme directory, replacing the existing file if needed.
Clear caching: If you have any caching plugins or services active, clear the cache to see the changes reflected on the front end.
Hope so this will help you!
Regards,
Bryce June -
AuthorPosts
- You must be logged in to reply to this topic.