Post by Ghost Leader » Thu Nov 22, 2018 5:16 am

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.
Last edited by Ghost Leader on Fri Nov 23, 2018 3:52 pm, edited 1 time in total.

New member

Posts

Joined
Fri Nov 04, 2016 3:58 pm

Post by xxvirusxx » Thu Nov 22, 2018 5:23 am

Check for a custom block/widget in theme option/design.

See if you have social block.

Opencart 3.0.2.0 with bugs fixed | Free extensions


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by Ghost Leader » Thu Nov 22, 2018 2:14 pm

ok, I found this: block-social.tpl

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>
what should I modify here?

New member

Posts

Joined
Fri Nov 04, 2016 3:58 pm

Post by OSWorX » Thu Nov 22, 2018 4:40 pm

Do you want to change the twitter ID only or remove the whole module?

Forum Rules [en]: viewtopic.php?f=176&t=200480
Forumregeln [de]: viewtopic.php?f=37&t=114208
Commercial Request: viewforum.php?f=88

Image


User avatar
Expert Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Ghost Leader » Thu Nov 22, 2018 7:26 pm

remove whole module, but if I delete the script above from file, all template go wild :joker:

New member

Posts

Joined
Fri Nov 04, 2016 3:58 pm

Post by Ghost Leader » Fri Nov 23, 2018 3:53 pm

solution was simpler than expected.
just deleted the alocated twitter field from footer_top.tpl file
thanks all for help

New member

Posts

Joined
Fri Nov 04, 2016 3:58 pm
Who is online

Users browsing this forum: No registered users and 9 guests