Hy,
I use OC 2.3.0.2 and use a pavo theme with a preinstalled twitter module that I want to delete. In a way I managed to do that, but on page remained a "Tweets by @" in footer, on left side by newsletter module. if I select it in chrome browser and use inspect tool, I can see the code that I must delete, but I dont know how to identify source file. Can you give a hint here?
Thanks
page is: http://www.xcape-room.ro/ -want to delete "Tweets by @" in footer, on left side by newsletter module.
Check for a custom block/widget in theme option/design.
See if you have social block.
See if you have social block.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
ok, I found this: block-social.tpl
where
what should I modify here?
where
Code: Select all
<?php
$config = $sconfig->get('themecontrol');
$default = array(
't_widgetid' => "366766896986591232",
't_username' => "pavothemes",
't_name' => "000000",
't_title' => "000000",
't_link' => "000000",
't_border' => "000000",
);
$config = array_merge($default, (array)$config);
?>
<div class="box-content">
<div id="pav-twitter">
<a class="twitter-timeline" data-dnt="true" data-chrome="noheader nofooter noborders transparent" data-theme="light" data-tweet-limit="1" data-show-replies="true" data-link-color="#<?php echo $config['t_link']; ?>" data-border-color="#<?php echo $config['t_border']; ?>" href="https://twitter.com/<?php echo $config['t_username']; ?>" data-widget-id="<?php echo $config['t_widgetid']; ?>">Tweets by @<?php echo $config['t_username'];?></a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
<script type="text/javascript">
// Customize twitter feed
var hideTwitterAttempts = 0;
function hideTwitterBoxElements() {
setTimeout( function() {
if ( $('[id*=pav-twitter]').length ) {
$('#pav-twitter iframe').each( function(){
var ibody = $(this).contents().find( 'body' );
if ( ibody.find( '.timeline .stream .h-feed li.tweet' ).length ) {
ibody.find( '.header .p-nickname' ).css( 'color', '<?php echo $config["t_name"]; ?>' );
ibody.find( '.p-name' ).css( 'color', '<?php echo $config["t_name"]; ?>' );
ibody.find( '.e-entry-title' ).css( 'color', '<?php echo $config["t_title"]; ?>' );
}
});
}
hideTwitterAttempts++;
if ( hideTwitterAttempts < 3 ) {
hideTwitterBoxElements();
}
}, 1500);
}
// somewhere in your code after html page load
hideTwitterBoxElements();
</script>
Do you want to change the twitter ID only or remove the whole module?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
solution was simpler than expected.
just deleted the alocated twitter field from footer_top.tpl file
thanks all for help
just deleted the alocated twitter field from footer_top.tpl file
thanks all for help
Who is online
Users browsing this forum: No registered users and 57 guests