Rohith Nuguri
asked 6 years ago

Is there a way to wrap the dw-focus template around some php code?  We have a lot of applications running on a server that were written in php that we want to still have with the new template.
 
Thanks

Rohith Nuguri
replied 6 years ago

Captions do not appear for the images in the gallery. Is there a fix to this ?

1 Answers
DominicStaff
answered 6 years ago

Hello Rohith !
– Regarding the Wrapping template, please tell me details about it: what kind of app and php code you have?
– To display captions for images in a Gallery post type, You can open the function.php file in the folder path “\wp-content\themes\dw-focus”
find the line 231 then add the following code Under the line code “$output .= “<img src=’”.$full_url[0].”‘ />”;

 $output .= "<span class='wp_caption'>". get_post($img_id)->post_excerpt ."</span>";

Then log in to Dashboard > Appearance > Customize > General code, add the following code to the “Header Script”

  <style>
.gallery .wp_caption {
position: absolute;
bottom: 0;
width: 100%;
text-align: center;
color: #fff;
padding: 10px 0;
background: rgba(255,255,255,.3);
}
</style>

Hope this helps !

Rohith Nuguri
replied 6 years ago

Hey Dominic,

An example would be http://www.agr.state.il.us/markets/hay/index.php?cat=9

This calls an sql function that returns data from a database. I want to be able to take all my existing pages and wrap them around the focus template so i dont have to copy paste each page manually.

Dominic Staff
replied 6 years ago

Hi Rohith !
At the moment, Our DW Focus does not yet support to Wrapping Template.

Powered by DW Question & Answer Pro