add-content-above-featured-pages
-
Hi I have been trying to add content to the front page with no luck. https://www.mermaidpavingandtiling.com.au
My tc_header, footer, fpu, etc are all 1170px wide. I have a picture background so I have adjusted all the bottom margins so there is no gaps. I had used the content below slider snippet & had the content as a ‘blockquote’ which was fine until I changed everything to 1170px wide. I can adjust the right margin so it looks ok in Chrome but out of line in IE & on mobile. I need to have a white background for this content & for it to be inline with the header & FPU’s.
The php code I am using is:
‘add_filter(‘tc_fp_block_display’, ‘content_before_fp’);
function content_before_fp($html) {
$before_fp = ‘<div class=home-content><p>
Mermaid Paving & Tiling are a professional team who offer a wide range of services within the scope of tiling, paving and artistic rock work, water features, sandstone, ceramics, glass mosaic, granite and more. With more than 20 years experience, we look after some of the biggest pool companies here on the Gold Coast, alongside resorts and even domestic home paving and tiling. We specialise in pool copings, pool tiling and pool surrounds and are the experts from sandstone to porcelain and everything in between.
We offer the following services:- All pool tiling and surrounds
- Pool renovations both residential and commercial
- Residential tiling and paving
- Commercial tiling and paving
- Artistic Rock work, from sandstone to granite
We guarantee our work to the highest standard and take the time with you to ensure we understand what you need and want from your tiling or paving project. In turn, you receive the best professional advice not only on the materials but the best procedure for your job. We strive to give you the finish you deserve so feel free to call for a quote on your project.</p>’; //Put your HTML inside this var
return $before_fp.$html;’I’ve tried creating a div class & using css:
‘#home-content {
background-color: #FAFAFA;
font-size: 17.5px;
font-weight: 300;
line-height: 1.25;
width: 1170px;
text-align: left;
padding-right: 8px;
}’
Any help where I am going terribly wrong would be appreciated.
- The topic ‘add-content-above-featured-pages’ is closed to new replies.