Nov 07, 2019 1:25 pm
I have looked high and low but clearly not far and wide.
https://atstradingsolutions.com/forum/
This is someones forum I am trying to make mine full-width like this instead of boxed?
How is this possible please?
http://londoncaviar.net/connect/
This is the forum so far any other suggestions kindly.
Thanks
[Solution]
Plugin for full-width templates
New [problem]
I am trying to add
add_filter('wpforo_content_after', 'wpforo_default_attachment_image_embed', 11);
function wpforo_default_attachment_image_embed( $content ){
if( preg_match_all('|<a class=\"wpforo\-default\-attachment\" href\=\"([^\"\']+)\"[^><]*>.+?<\/a>|is', $content, $data, PREG_SET_ORDER) ){
foreach($data as $array){
if(isset($array[1])){
$file = $array[1];
$e = strtolower(substr(strrchr($file, '.'), 1));
if( $e == 'jpg' || $e == 'jpeg' || $e == 'png' || $e == 'gif' ){
$filename = explode('/', $file); $filename = end($filename);
$html = '<a href="' . esc_url($file) . '" target="_blank"><img class="wpforo-default-image-attachment" src="' . esc_url($file) . '" alt="' . esc_attr($filename) . '" title="' . esc_attr($filename) . '" /></a>';
$content = str_replace($array[0], $html, $content);
}
}
}
}
return $content;
}
Its added into my active theme functions.php but it does not change anything?
1 Reply
Nov 08, 2019 11:07 am
Hi @justfixit),
Please delete all caches before checking. We've checked the code one more time, it works fine.